@solostylist/ui-kit 1.0.19 → 1.0.21

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-CppaOdse.js → Box-CYhpy9DM.js} +5 -5
  2. package/dist/{memoTheme-Bkr5VYLb.js → DefaultPropsProvider-DhE0_fCr.js} +19 -20
  3. package/dist/HelpOutline-BpAsfhrs.js +8 -0
  4. package/dist/{Menu-bcHHOGTe.js → Menu-DeygsmYI.js} +6 -6
  5. package/dist/{Stack-Cvqi8X8g.js → Stack-Du2vO-iF.js} +5 -5
  6. package/dist/{Typography--_YDZuXf.js → Typography-BUC2b3EE.js} +5 -5
  7. package/dist/{buttonBaseClasses-Djzc2AiG.js → buttonBaseClasses-D9p3ujfW.js} +2 -2
  8. package/dist/{createSvgIcon-Ct7gnxYc.js → createSvgIcon-CFj_BoDp.js} +4 -4
  9. package/dist/{createTheme-Hc7RjLJ8.js → createTheme-DkVAXJiq.js} +157 -156
  10. package/dist/{extendSxProp-CRSYESt2.js → extendSxProp-oTj2mv7x.js} +1 -1
  11. package/dist/{generateUtilityClasses-BUjlppXi.js → generateUtilityClasses-DStZbN71.js} +1 -1
  12. package/dist/{iconButtonClasses-p4XIdEHn.js → iconButtonClasses-Dx9aLkXb.js} +2 -2
  13. package/dist/{identifier-CHPjnqaz.js → identifier-DCmLmBSP.js} +23 -23
  14. package/dist/{index-DKnaPifQ.js → index-8QDI4GK5.js} +5 -5
  15. package/dist/{menuItemClasses-Dzm1zEZ_.js → menuItemClasses-D9_8SIPH.js} +2 -2
  16. package/dist/{outlinedInputClasses-49K73-OT.js → outlinedInputClasses-DNQT_xFJ.js} +2 -2
  17. package/dist/s-data-table/s-data-table.js +7 -7
  18. package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
  19. package/dist/s-dialog-message/s-dialog-message.js +1 -1
  20. package/dist/s-file-dropzone/s-file-dropzone.js +3 -3
  21. package/dist/s-file-icon/s-file-icon.js +1 -1
  22. package/dist/s-form/s-form.d.ts +2 -1
  23. package/dist/s-form/s-form.js +12 -7
  24. package/dist/s-label/s-label.d.ts +2 -1
  25. package/dist/s-label/s-label.js +10 -6
  26. package/dist/s-multi-select/s-multi-select.js +45 -45
  27. package/dist/s-select/s-select.js +32 -29
  28. package/dist/s-text-editor/s-text-editor-toolbar.js +45 -45
  29. package/dist/s-text-editor/s-text-editor.js +1 -1
  30. package/dist/s-text-field/s-text-field.d.ts +2 -1
  31. package/dist/s-text-field/s-text-field.js +7 -6
  32. package/dist/s-tip/s-tip.js +3 -3
  33. package/dist/{selectClasses-5MwxZ3Fd.js → selectClasses-BDdGqseQ.js} +2 -2
  34. package/dist/{svgIconClasses-CeSsTTHM.js → svgIconClasses-ByelSBlO.js} +2 -2
  35. package/dist/theme/customizations/data-display.js +6 -6
  36. package/dist/theme/customizations/feedback.js +1 -1
  37. package/dist/theme/customizations/inputs.js +5 -5
  38. package/dist/theme/customizations/navigation.js +6 -6
  39. package/dist/theme/customizations/surfaces.js +1 -1
  40. package/dist/theme/theme-primitives.js +1 -1
  41. package/dist/{typographyClasses-ykhCbiPA.js → typographyClasses-By7qHJ5j.js} +2 -2
  42. package/dist/{useControlled-Bvu9pDu8.js → useFormControl-D6-HePVL.js} +8 -8
  43. package/dist/{useSlot-DeteCI62.js → useSlot-D9cy_5Wu.js} +14 -14
  44. package/dist/{useTheme-Z78hHaly.js → useTheme-B14mI9KW.js} +1 -1
  45. package/package.json +1 -1
@@ -1,5 +1,18 @@
1
1
  import C from "@emotion/styled";
2
2
  import "@emotion/react";
3
+ function v(e) {
4
+ var r, t, n = "";
5
+ if (typeof e == "string" || typeof e == "number") n += e;
6
+ else if (typeof e == "object") if (Array.isArray(e)) {
7
+ var o = e.length;
8
+ for (r = 0; r < o; r++) e[r] && (t = v(e[r])) && (n && (n += " "), n += t);
9
+ } else for (t in e) e[t] && (n && (n += " "), n += t);
10
+ return n;
11
+ }
12
+ function M() {
13
+ for (var e, r, t = 0, n = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (r = v(e)) && (n && (n += " "), n += r);
14
+ return n;
15
+ }
3
16
  function w(e) {
4
17
  for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)
5
18
  t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
@@ -75,12 +88,12 @@ function A(e) {
75
88
  return r[t] === void 0 && (r[t] = e(t)), r[t];
76
89
  };
77
90
  }
78
- var S = /[A-Z]|^ms/g, O = /_EMO_([^_]+?)_([^]*?)_EMO_/g, v = function(r) {
91
+ var S = /[A-Z]|^ms/g, O = /_EMO_([^_]+?)_([^]*?)_EMO_/g, b = function(r) {
79
92
  return r.charCodeAt(1) === 45;
80
93
  }, x = function(r) {
81
94
  return r != null && typeof r != "boolean";
82
95
  }, d = /* @__PURE__ */ A(function(e) {
83
- return v(e) ? e : e.replace(S, "-$&").toLowerCase();
96
+ return b(e) ? e : e.replace(S, "-$&").toLowerCase();
84
97
  }), y = function(r, t) {
85
98
  switch (r) {
86
99
  case "animation":
@@ -94,7 +107,7 @@ var S = /[A-Z]|^ms/g, O = /_EMO_([^_]+?)_([^]*?)_EMO_/g, v = function(r) {
94
107
  }, o;
95
108
  });
96
109
  }
97
- return _[r] !== 1 && !v(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
110
+ return _[r] !== 1 && !b(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
98
111
  };
99
112
  function u(e, r, t) {
100
113
  if (t == null)
@@ -196,7 +209,7 @@ function R(e, r, t) {
196
209
  * This source code is licensed under the MIT license found in the
197
210
  * LICENSE file in the root directory of this source tree.
198
211
  */
199
- function M(e, r) {
212
+ function $(e, r) {
200
213
  const t = C(e, r);
201
214
  return process.env.NODE_ENV !== "production" ? (...n) => {
202
215
  const o = typeof e == "string" ? `"${e}"` : "component";
@@ -204,31 +217,18 @@ function M(e, r) {
204
217
  `)) : n.some((a) => a === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), t(...n);
205
218
  } : t;
206
219
  }
207
- function $(e, r) {
220
+ function P(e, r) {
208
221
  Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
209
222
  }
210
223
  const p = [];
211
- function P(e) {
224
+ function F(e) {
212
225
  return p[0] = e, R(p);
213
226
  }
214
- function b(e) {
215
- var r, t, n = "";
216
- if (typeof e == "string" || typeof e == "number") n += e;
217
- else if (typeof e == "object") if (Array.isArray(e)) {
218
- var o = e.length;
219
- for (r = 0; r < o; r++) e[r] && (t = b(e[r])) && (n && (n += " "), n += t);
220
- } else for (t in e) e[t] && (n && (n += " "), n += t);
221
- return n;
222
- }
223
- function F() {
224
- for (var e, r, t = 0, n = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (r = b(e)) && (n && (n += " "), n += r);
225
- return n;
226
- }
227
227
  const N = "$$material";
228
228
  export {
229
229
  N as T,
230
- $ as a,
231
- F as c,
232
- P as i,
233
- M as s
230
+ P as a,
231
+ M as c,
232
+ F as i,
233
+ $ as s
234
234
  };
@@ -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-CRSYESt2.js";
4
- import { P as e } from "./createTheme-Hc7RjLJ8.js";
5
- import { d as a } from "./memoTheme-Bkr5VYLb.js";
6
- import { T as c } from "./identifier-CHPjnqaz.js";
7
- import { u as m } from "./useTheme-Z78hHaly.js";
3
+ import { e as f } from "./extendSxProp-oTj2mv7x.js";
4
+ import { P as e } from "./createTheme-DkVAXJiq.js";
5
+ import { d as a } from "./DefaultPropsProvider-DhE0_fCr.js";
6
+ import { T as c } from "./identifier-DCmLmBSP.js";
7
+ import { u as m } from "./useTheme-B14mI9KW.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,5 +1,5 @@
1
- import { g as e } from "./generateUtilityClasses-BUjlppXi.js";
2
- import { g as i } from "./createTheme-Hc7RjLJ8.js";
1
+ import { g as e } from "./generateUtilityClasses-DStZbN71.js";
2
+ import { g as i } from "./createTheme-DkVAXJiq.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-BUjlppXi.js";
2
- import { g as e } from "./createTheme-Hc7RjLJ8.js";
1
+ import { g as n } from "./generateUtilityClasses-DStZbN71.js";
2
+ import { g as e } from "./createTheme-DkVAXJiq.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-Hc7RjLJ8.js";
5
- import { c as I } from "../identifier-CHPjnqaz.js";
6
- import { s as S, c as $, r as se, u as E, m as W } from "../memoTheme-Bkr5VYLb.js";
7
- import { g as B } from "../generateUtilityClasses-BUjlppXi.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-DeteCI62.js";
10
- import { c as J } from "../createSvgIcon-Ct7gnxYc.js";
4
+ import { g as N, c as j, P as e, a as M, n as Te, o as ke } from "../createTheme-DkVAXJiq.js";
5
+ import { c as I } from "../identifier-DCmLmBSP.js";
6
+ import { s as S, c as $, r as se, u as E, m as W } from "../DefaultPropsProvider-DhE0_fCr.js";
7
+ import { g as B } from "../generateUtilityClasses-DStZbN71.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-D9cy_5Wu.js";
10
+ import { c as J } from "../createSvgIcon-CFj_BoDp.js";
11
11
  import { c as Y } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
12
12
  function Se(o) {
13
13
  return N("PrivateSwitchBase", o);
@@ -3,7 +3,7 @@ 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
4
  import { S as b } from "../X-B8GTZwii.js";
5
5
  import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as m } from "../Typography--_YDZuXf.js";
6
+ import { T as m } from "../Typography-BUC2b3EE.js";
7
7
  const w = ({
8
8
  title: o,
9
9
  content: e,
@@ -3,7 +3,7 @@ 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
4
  import { S as D } from "../X-B8GTZwii.js";
5
5
  import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as c } from "../Typography--_YDZuXf.js";
6
+ import { T as c } from "../Typography-BUC2b3EE.js";
7
7
  const v = ({
8
8
  title: n,
9
9
  content: e,
@@ -7,9 +7,9 @@ import { useDropzone as F } from "react-dropzone";
7
7
  import I from "../s-file-icon/s-file-icon.js";
8
8
  import O from "../s-form/s-form.js";
9
9
  import { bytesToSize as C } from "../utils/bytes-to-size.js";
10
- import { S as n } from "../Stack-Cvqi8X8g.js";
11
- import { B as u } from "../Box-CppaOdse.js";
12
- import { T as i } from "../Typography--_YDZuXf.js";
10
+ import { S as n } from "../Stack-Du2vO-iF.js";
11
+ import { B as u } from "../Box-CYhpy9DM.js";
12
+ import { T as i } from "../Typography-BUC2b3EE.js";
13
13
  const H = /* @__PURE__ */ new Map([
14
14
  [
15
15
  "bold",
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { B as i } from "../Box-CppaOdse.js";
2
+ import { B as i } from "../Box-CYhpy9DM.js";
3
3
  const o = {
4
4
  jpeg: "/assets/icon-jpg.svg",
5
5
  jpg: "/assets/icon-jpg.svg",
@@ -1,9 +1,10 @@
1
1
  export interface SFormProps {
2
2
  label: string | React.ReactNode;
3
+ hint?: string;
3
4
  error?: string;
4
5
  required: boolean;
5
6
  children: React.ReactNode;
6
7
  htmlFor?: string;
7
8
  }
8
- declare const SForm: ({ label, error, required, children, htmlFor }: SFormProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const SForm: ({ label, hint, error, required, children, htmlFor }: SFormProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export default SForm;
@@ -1,10 +1,15 @@
1
- import { j as o } from "../jsx-runtime-C5mzlN2N.js";
2
- import { FormControl as m, FormLabel as s, FormHelperText as i } from "@mui/material";
3
- const d = ({ label: l, error: r, required: t, children: e, htmlFor: n }) => /* @__PURE__ */ o.jsxs(m, { error: !!r, fullWidth: !0, children: [
4
- l ? /* @__PURE__ */ o.jsx(s, { htmlFor: n, required: t, children: l }) : null,
5
- e,
6
- r ? /* @__PURE__ */ o.jsx(i, { children: r }) : null
1
+ import { j as l } from "../jsx-runtime-C5mzlN2N.js";
2
+ import { FormControl as i, FormLabel as m, Tooltip as p, FormHelperText as x } from "@mui/material";
3
+ import { H as a } from "../HelpOutline-BpAsfhrs.js";
4
+ const f = ({ label: t, hint: o, error: e, required: r, children: s, htmlFor: n }) => /* @__PURE__ */ l.jsxs(i, { error: !!e, fullWidth: !0, children: [
5
+ t ? /* @__PURE__ */ l.jsxs(m, { htmlFor: n, required: r, sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
6
+ t,
7
+ " ",
8
+ o ? /* @__PURE__ */ l.jsx(p, { title: o, placement: "top", children: /* @__PURE__ */ l.jsx(a, { fontSize: "small" }) }) : null
9
+ ] }) : null,
10
+ s,
11
+ e ? /* @__PURE__ */ l.jsx(x, { children: e }) : null
7
12
  ] });
8
13
  export {
9
- d as default
14
+ f as default
10
15
  };
@@ -5,7 +5,8 @@ export interface SLabelProps {
5
5
  label?: string | React.ReactNode;
6
6
  content?: string | React.ReactNode;
7
7
  children?: React.ReactNode;
8
+ hint?: string;
8
9
  sx?: SxProps<Theme> | undefined;
9
10
  }
10
- declare const SLabel: ({ label, content, children, sx }: SLabelProps) => React.JSX.Element;
11
+ declare const SLabel: ({ label, content, children, hint, sx }: SLabelProps) => React.JSX.Element;
11
12
  export default SLabel;
@@ -1,7 +1,11 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { Stack as n } from "@mui/material";
3
- const a = ({ label: t, content: i, children: r, sx: o }) => /* @__PURE__ */ e.jsxs(n, { width: "100%", sx: o, children: [
4
- /* @__PURE__ */ e.jsx("div", { style: { fontSize: "1rem", fontWeight: 500, lineHeight: 1.57 }, children: t }),
2
+ import { Stack as i, Tooltip as s } from "@mui/material";
3
+ import { H as a } from "../HelpOutline-BpAsfhrs.js";
4
+ const p = ({ label: l, content: r, children: o, hint: t, sx: n }) => /* @__PURE__ */ e.jsxs(i, { width: "100%", sx: n, children: [
5
+ /* @__PURE__ */ e.jsxs(i, { direction: "row", gap: 1, alignItems: "center", children: [
6
+ /* @__PURE__ */ e.jsx("div", { style: { fontSize: "1rem", fontWeight: 500, lineHeight: 1.57 }, children: l }),
7
+ t ? /* @__PURE__ */ e.jsx(s, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(a, { fontSize: "small" }) }) : null
8
+ ] }),
5
9
  /* @__PURE__ */ e.jsx(
6
10
  "div",
7
11
  {
@@ -11,11 +15,11 @@ const a = ({ label: t, content: i, children: r, sx: o }) => /* @__PURE__ */ e.js
11
15
  lineHeight: 1.57,
12
16
  color: "var(--mui-palette-text-secondary)"
13
17
  },
14
- children: i
18
+ children: r
15
19
  }
16
20
  ),
17
- r
21
+ o
18
22
  ] });
19
23
  export {
20
- a as default
24
+ p as default
21
25
  };
@@ -1,26 +1,26 @@
1
1
  import { j as l } from "../jsx-runtime-C5mzlN2N.js";
2
- import * as u from "react";
3
- import { c as V } from "../createSvgIcon-Ct7gnxYc.js";
4
- import { OutlinedInput as P, selectClasses as B } from "@mui/material";
5
- import { usePopover as E } from "../hooks/use-popover.js";
2
+ import * as m from "react";
3
+ import { c as V } from "../createSvgIcon-CFj_BoDp.js";
4
+ import { Stack as P, OutlinedInput as B, selectClasses as E } from "@mui/material";
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 U } from "../Menu-bcHHOGTe.js";
9
- import { a as f, P as s } from "../createTheme-Hc7RjLJ8.js";
10
- import { c as M } from "../identifier-CHPjnqaz.js";
11
- import { u as z, s as D, c as G, r as H, m as _ } from "../memoTheme-Bkr5VYLb.js";
12
- import { g as A, d as k, m } from "../menuItemClasses-Dzm1zEZ_.js";
13
- import { u as W } from "../useEnhancedEffect-CJGo-L3B.js";
14
- import { u as q, B as J } from "../useSlot-DeteCI62.js";
15
- import { g as S } from "../generateUtilityClasses-BUjlppXi.js";
16
- const K = V(/* @__PURE__ */ l.jsx("path", {
8
+ import { L as O, M as z } from "../Menu-DeygsmYI.js";
9
+ import { a as f, P as s } from "../createTheme-DkVAXJiq.js";
10
+ import { c as M } from "../identifier-DCmLmBSP.js";
11
+ import { u as D, s as G, c as H, r as _, m as A } from "../DefaultPropsProvider-DhE0_fCr.js";
12
+ import { g as W, d as k, m as u } from "../menuItemClasses-D9_8SIPH.js";
13
+ import { u as q } from "../useEnhancedEffect-CJGo-L3B.js";
14
+ import { u as J, B as K } from "../useSlot-D9cy_5Wu.js";
15
+ import { g as R } from "../generateUtilityClasses-DStZbN71.js";
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
- }), "UnfoldMore"), j = S("MuiListItemIcon", ["root", "alignItemsFlexStart"]), R = S("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), Q = (e, o) => {
18
+ }), "UnfoldMore"), S = R("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = R("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), X = (e, o) => {
19
19
  const {
20
20
  ownerState: r
21
21
  } = e;
22
22
  return [o.root, r.dense && o.dense, r.divider && o.divider, !r.disableGutters && o.gutters];
23
- }, X = (e) => {
23
+ }, Y = (e) => {
24
24
  const {
25
25
  disabled: o,
26
26
  dense: r,
@@ -28,19 +28,19 @@ const K = V(/* @__PURE__ */ l.jsx("path", {
28
28
  disableGutters: d,
29
29
  selected: i,
30
30
  classes: c
31
- } = e, n = G({
31
+ } = e, n = H({
32
32
  root: ["root", r && "dense", o && "disabled", !d && "gutters", a && "divider", i && "selected"]
33
- }, A, c);
33
+ }, W, c);
34
34
  return {
35
35
  ...c,
36
36
  ...n
37
37
  };
38
- }, Y = D(J, {
39
- shouldForwardProp: (e) => H(e) || e === "classes",
38
+ }, Z = G(K, {
39
+ shouldForwardProp: (e) => _(e) || e === "classes",
40
40
  name: "MuiMenuItem",
41
41
  slot: "Root",
42
- overridesResolver: Q
43
- })(_(({
42
+ overridesResolver: X
43
+ })(A(({
44
44
  theme: e
45
45
  }) => ({
46
46
  ...e.typography.body1,
@@ -62,23 +62,23 @@ const K = V(/* @__PURE__ */ l.jsx("path", {
62
62
  backgroundColor: "transparent"
63
63
  }
64
64
  },
65
- [`&.${m.selected}`]: {
65
+ [`&.${u.selected}`]: {
66
66
  backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : f(e.palette.primary.main, e.palette.action.selectedOpacity),
67
- [`&.${m.focusVisible}`]: {
67
+ [`&.${u.focusVisible}`]: {
68
68
  backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : f(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
69
69
  }
70
70
  },
71
- [`&.${m.selected}:hover`]: {
71
+ [`&.${u.selected}:hover`]: {
72
72
  backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : f(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
73
73
  // Reset on touch devices, it doesn't add specificity
74
74
  "@media (hover: none)": {
75
75
  backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : f(e.palette.primary.main, e.palette.action.selectedOpacity)
76
76
  }
77
77
  },
78
- [`&.${m.focusVisible}`]: {
78
+ [`&.${u.focusVisible}`]: {
79
79
  backgroundColor: (e.vars || e).palette.action.focus
80
80
  },
81
- [`&.${m.disabled}`]: {
81
+ [`&.${u.disabled}`]: {
82
82
  opacity: (e.vars || e).palette.action.disabledOpacity
83
83
  },
84
84
  [`& + .${k.root}`]: {
@@ -88,14 +88,14 @@ const K = V(/* @__PURE__ */ l.jsx("path", {
88
88
  [`& + .${k.inset}`]: {
89
89
  marginLeft: 52
90
90
  },
91
- [`& .${R.root}`]: {
91
+ [`& .${j.root}`]: {
92
92
  marginTop: 0,
93
93
  marginBottom: 0
94
94
  },
95
- [`& .${R.inset}`]: {
95
+ [`& .${j.inset}`]: {
96
96
  paddingLeft: 36
97
97
  },
98
- [`& .${j.root}`]: {
98
+ [`& .${S.root}`]: {
99
99
  minWidth: 36
100
100
  },
101
101
  variants: [{
@@ -133,13 +133,13 @@ const K = V(/* @__PURE__ */ l.jsx("path", {
133
133
  paddingTop: 4,
134
134
  paddingBottom: 4,
135
135
  ...e.typography.body2,
136
- [`& .${j.root} svg`]: {
136
+ [`& .${S.root} svg`]: {
137
137
  fontSize: "1.25rem"
138
138
  }
139
139
  }
140
140
  }]
141
- }))), h = /* @__PURE__ */ u.forwardRef(function(o, r) {
142
- const a = z({
141
+ }))), h = /* @__PURE__ */ m.forwardRef(function(o, r) {
142
+ const a = D({
143
143
  props: o,
144
144
  name: "MuiMenuItem"
145
145
  }), {
@@ -153,11 +153,11 @@ const K = V(/* @__PURE__ */ l.jsx("path", {
153
153
  tabIndex: y,
154
154
  className: w,
155
155
  ...T
156
- } = a, C = u.useContext(O), I = u.useMemo(() => ({
156
+ } = a, C = m.useContext(O), I = m.useMemo(() => ({
157
157
  dense: c || C.dense || !1,
158
158
  disableGutters: n
159
- }), [C.dense, c, n]), v = u.useRef(null);
160
- W(() => {
159
+ }), [C.dense, c, n]), v = m.useRef(null);
160
+ q(() => {
161
161
  d && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
162
162
  }, [d]);
163
163
  const L = {
@@ -165,11 +165,11 @@ const K = V(/* @__PURE__ */ l.jsx("path", {
165
165
  dense: I.dense,
166
166
  divider: t,
167
167
  disableGutters: n
168
- }, g = X(a), N = q(v, r);
168
+ }, g = Y(a), N = J(v, r);
169
169
  let $;
170
170
  return a.disabled || ($ = y !== void 0 ? y : -1), /* @__PURE__ */ l.jsx(O.Provider, {
171
171
  value: I,
172
- children: /* @__PURE__ */ l.jsx(Y, {
172
+ children: /* @__PURE__ */ l.jsx(Z, {
173
173
  ref: N,
174
174
  role: b,
175
175
  tabIndex: $,
@@ -257,26 +257,26 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
257
257
  */
258
258
  tabIndex: s.number
259
259
  });
260
- function me({
260
+ function fe({
261
261
  label: e,
262
262
  onChange: o,
263
263
  options: r,
264
264
  value: a = [],
265
265
  chipProps: d
266
266
  }) {
267
- const i = E(), c = u.useCallback(
267
+ const i = U(), c = m.useCallback(
268
268
  (t, n) => {
269
269
  let p = [...a];
270
270
  n ? p.push(t) : p = p.filter((b) => b !== t), o == null || o(p);
271
271
  },
272
272
  [o, a]
273
273
  );
274
- return /* @__PURE__ */ l.jsxs(u.Fragment, { children: [
274
+ return /* @__PURE__ */ l.jsxs(P, { direction: "column", gap: 1, children: [
275
275
  /* @__PURE__ */ l.jsx(
276
- P,
276
+ B,
277
277
  {
278
278
  endAdornment: /* @__PURE__ */ l.jsx(
279
- K,
279
+ Q,
280
280
  {
281
281
  fontSize: "small",
282
282
  sx: { color: "var(--s-palette-action-active)", position: "absolute", right: "7px" }
@@ -296,7 +296,7 @@ function me({
296
296
  backgroundColor: "var(--s-palette-background-paper)",
297
297
  boxShadow: "none"
298
298
  },
299
- [`&.${B.focused}`]: {
299
+ [`&.${E.focused}`]: {
300
300
  outlineOffset: 0,
301
301
  borderColor: x[400]
302
302
  },
@@ -307,7 +307,7 @@ function me({
307
307
  }
308
308
  ),
309
309
  /* @__PURE__ */ l.jsx(
310
- U,
310
+ z,
311
311
  {
312
312
  anchorEl: i.anchorRef.current,
313
313
  onClose: i.handleClose,
@@ -339,5 +339,5 @@ function me({
339
339
  ] });
340
340
  }
341
341
  export {
342
- me as default
342
+ fe as default
343
343
  };
@@ -1,56 +1,59 @@
1
- import { j as d } from "../jsx-runtime-C5mzlN2N.js";
2
- import { forwardRef as h, useState as m, useEffect as V } from "react";
1
+ import { j as u } from "../jsx-runtime-C5mzlN2N.js";
2
+ import { forwardRef as m, useState as b, useEffect as V } from "react";
3
3
  import { Select as E, MenuItem as O } from "@mui/material";
4
4
  import R from "../s-form/s-form.js";
5
- const M = h(
5
+ const M = m(
6
6
  ({
7
- options: l = [],
8
- optionLabel: o = "name",
9
- optionValue: c = "id",
10
- placeholder: i,
7
+ options: t = [],
8
+ optionLabel: c = "name",
9
+ optionValue: i = "id",
10
+ placeholder: d,
11
11
  label: v = "",
12
12
  error: x,
13
13
  required: y = !1,
14
14
  variant: $ = "outlined",
15
15
  simple: g = !1,
16
- htmlFor: s,
17
- ...t
16
+ htmlFor: o,
17
+ ...n
18
18
  }, j) => {
19
- const [S, p] = m(t.value ?? null);
19
+ const [p, S] = b(n.value ?? null);
20
20
  V(() => {
21
- p(t.value ?? null);
22
- }, [t.value]);
23
- const u = (e) => String(typeof e == "string" || typeof e == "number" ? e : e[o]), n = (e) => typeof e == "string" || typeof e == "number" ? e : e[c];
24
- return /* @__PURE__ */ d.jsx(R, { error: x, label: v, required: y, htmlFor: s, children: /* @__PURE__ */ d.jsx(
21
+ S(n.value ?? null);
22
+ }, [n.value]);
23
+ const a = (e) => String(typeof e == "string" || typeof e == "number" ? e : e[c]), l = (e) => typeof e == "string" || typeof e == "number" ? e : e[i];
24
+ return /* @__PURE__ */ u.jsx(R, { error: x, label: v, required: y, htmlFor: o, children: /* @__PURE__ */ u.jsx(
25
25
  E,
26
26
  {
27
- id: s,
27
+ id: o,
28
28
  displayEmpty: !0,
29
29
  fullWidth: !0,
30
30
  defaultValue: "",
31
31
  ref: j,
32
- renderValue: t.multiple ? (e) => e.map((a) => {
33
- const f = l.find((b) => n(b) === n(a));
34
- return f ? u(f) : "";
35
- }).filter(Boolean).join(", ") : (e) => {
32
+ renderValue: n.multiple ? (e) => {
33
+ const r = e;
34
+ return r.length === 0 ? /* @__PURE__ */ u.jsx("span", { style: { color: "var(--mui-palette-text-secondary)" }, children: d }) : r.map((f) => {
35
+ const s = t.find((h) => l(h) === l(f));
36
+ return s ? a(s) : "";
37
+ }).filter(Boolean).join(", ");
38
+ } : (e) => {
36
39
  const r = e;
37
40
  if (r == null || r === "")
38
- return /* @__PURE__ */ d.jsx("span", { style: { color: "var(--mui-palette-text-secondary)" }, children: i });
41
+ return /* @__PURE__ */ u.jsx("span", { style: { color: "var(--mui-palette-text-secondary)" }, children: d });
39
42
  if (g)
40
- return u(r);
41
- const a = l.find((f) => n(f) === n(r));
42
- return a ? u(a) : "";
43
+ return a(r);
44
+ const f = t.find((s) => l(s) === l(r));
45
+ return f ? a(f) : "";
43
46
  },
44
- ...t,
45
- value: l.length ? S ?? "" : "",
46
- children: l == null ? void 0 : l.map((e, r) => /* @__PURE__ */ d.jsx(
47
+ ...n,
48
+ value: t.length ? p ?? "" : "",
49
+ children: t == null ? void 0 : t.map((e, r) => /* @__PURE__ */ u.jsx(
47
50
  O,
48
51
  {
49
52
  disabled: (e == null ? void 0 : e.disabled) ?? !1,
50
- value: n(e),
51
- children: u(e)
53
+ value: l(e),
54
+ children: a(e)
52
55
  },
53
- `${n(e)}-${r}`
56
+ `${l(e)}-${r}`
54
57
  ))
55
58
  }
56
59
  ) });