@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.
- package/dist/{Box-CppaOdse.js → Box-CYhpy9DM.js} +5 -5
- package/dist/{memoTheme-Bkr5VYLb.js → DefaultPropsProvider-DhE0_fCr.js} +19 -20
- package/dist/HelpOutline-BpAsfhrs.js +8 -0
- package/dist/{Menu-bcHHOGTe.js → Menu-DeygsmYI.js} +6 -6
- package/dist/{Stack-Cvqi8X8g.js → Stack-Du2vO-iF.js} +5 -5
- package/dist/{Typography--_YDZuXf.js → Typography-BUC2b3EE.js} +5 -5
- package/dist/{buttonBaseClasses-Djzc2AiG.js → buttonBaseClasses-D9p3ujfW.js} +2 -2
- package/dist/{createSvgIcon-Ct7gnxYc.js → createSvgIcon-CFj_BoDp.js} +4 -4
- package/dist/{createTheme-Hc7RjLJ8.js → createTheme-DkVAXJiq.js} +157 -156
- package/dist/{extendSxProp-CRSYESt2.js → extendSxProp-oTj2mv7x.js} +1 -1
- package/dist/{generateUtilityClasses-BUjlppXi.js → generateUtilityClasses-DStZbN71.js} +1 -1
- package/dist/{iconButtonClasses-p4XIdEHn.js → iconButtonClasses-Dx9aLkXb.js} +2 -2
- package/dist/{identifier-CHPjnqaz.js → identifier-DCmLmBSP.js} +23 -23
- package/dist/{index-DKnaPifQ.js → index-8QDI4GK5.js} +5 -5
- package/dist/{menuItemClasses-Dzm1zEZ_.js → menuItemClasses-D9_8SIPH.js} +2 -2
- package/dist/{outlinedInputClasses-49K73-OT.js → outlinedInputClasses-DNQT_xFJ.js} +2 -2
- package/dist/s-data-table/s-data-table.js +7 -7
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +3 -3
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-form/s-form.d.ts +2 -1
- package/dist/s-form/s-form.js +12 -7
- package/dist/s-label/s-label.d.ts +2 -1
- package/dist/s-label/s-label.js +10 -6
- package/dist/s-multi-select/s-multi-select.js +45 -45
- package/dist/s-select/s-select.js +32 -29
- package/dist/s-text-editor/s-text-editor-toolbar.js +45 -45
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +2 -1
- package/dist/s-text-field/s-text-field.js +7 -6
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{selectClasses-5MwxZ3Fd.js → selectClasses-BDdGqseQ.js} +2 -2
- package/dist/{svgIconClasses-CeSsTTHM.js → svgIconClasses-ByelSBlO.js} +2 -2
- package/dist/theme/customizations/data-display.js +6 -6
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- 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-ykhCbiPA.js → typographyClasses-By7qHJ5j.js} +2 -2
- package/dist/{useControlled-Bvu9pDu8.js → useFormControl-D6-HePVL.js} +8 -8
- package/dist/{useSlot-DeteCI62.js → useSlot-D9cy_5Wu.js} +14 -14
- package/dist/{useTheme-Z78hHaly.js → useTheme-B14mI9KW.js} +1 -1
- 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,
|
|
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
|
|
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 && !
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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-
|
|
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-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-
|
|
2
|
-
import { g as i } from "./createTheme-
|
|
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-
|
|
2
|
-
import { g as e } from "./createTheme-
|
|
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-
|
|
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-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
|
|
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
|
|
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-
|
|
11
|
-
import { B as u } from "../Box-
|
|
12
|
-
import { T as i } from "../Typography
|
|
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",
|
package/dist/s-form/s-form.d.ts
CHANGED
|
@@ -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;
|
package/dist/s-form/s-form.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { FormControl as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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;
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { Stack as
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
18
|
+
children: r
|
|
15
19
|
}
|
|
16
20
|
),
|
|
17
|
-
|
|
21
|
+
o
|
|
18
22
|
] });
|
|
19
23
|
export {
|
|
20
|
-
|
|
24
|
+
p as default
|
|
21
25
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { j as l } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { c as V } from "../createSvgIcon-
|
|
4
|
-
import {
|
|
5
|
-
import { usePopover as
|
|
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
|
|
9
|
-
import { a as f, P as s } from "../createTheme-
|
|
10
|
-
import { c as M } from "../identifier-
|
|
11
|
-
import { u as
|
|
12
|
-
import { g as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { g as
|
|
16
|
-
const
|
|
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"),
|
|
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
|
-
},
|
|
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 =
|
|
31
|
+
} = e, n = H({
|
|
32
32
|
root: ["root", r && "dense", o && "disabled", !d && "gutters", a && "divider", i && "selected"]
|
|
33
|
-
},
|
|
33
|
+
}, W, c);
|
|
34
34
|
return {
|
|
35
35
|
...c,
|
|
36
36
|
...n
|
|
37
37
|
};
|
|
38
|
-
},
|
|
39
|
-
shouldForwardProp: (e) =>
|
|
38
|
+
}, Z = G(K, {
|
|
39
|
+
shouldForwardProp: (e) => _(e) || e === "classes",
|
|
40
40
|
name: "MuiMenuItem",
|
|
41
41
|
slot: "Root",
|
|
42
|
-
overridesResolver:
|
|
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
|
-
[`&.${
|
|
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
|
-
[`&.${
|
|
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
|
-
[`&.${
|
|
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
|
-
[`&.${
|
|
78
|
+
[`&.${u.focusVisible}`]: {
|
|
79
79
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
80
80
|
},
|
|
81
|
-
[`&.${
|
|
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
|
-
[`& .${
|
|
91
|
+
[`& .${j.root}`]: {
|
|
92
92
|
marginTop: 0,
|
|
93
93
|
marginBottom: 0
|
|
94
94
|
},
|
|
95
|
-
[`& .${
|
|
95
|
+
[`& .${j.inset}`]: {
|
|
96
96
|
paddingLeft: 36
|
|
97
97
|
},
|
|
98
|
-
[`& .${
|
|
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
|
-
[`& .${
|
|
136
|
+
[`& .${S.root} svg`]: {
|
|
137
137
|
fontSize: "1.25rem"
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}]
|
|
141
|
-
}))), h = /* @__PURE__ */
|
|
142
|
-
const a =
|
|
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 =
|
|
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 =
|
|
160
|
-
|
|
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 =
|
|
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(
|
|
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
|
|
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 =
|
|
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(
|
|
274
|
+
return /* @__PURE__ */ l.jsxs(P, { direction: "column", gap: 1, children: [
|
|
275
275
|
/* @__PURE__ */ l.jsx(
|
|
276
|
-
|
|
276
|
+
B,
|
|
277
277
|
{
|
|
278
278
|
endAdornment: /* @__PURE__ */ l.jsx(
|
|
279
|
-
|
|
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
|
-
[`&.${
|
|
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
|
-
|
|
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
|
-
|
|
342
|
+
fe as default
|
|
343
343
|
};
|
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
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 =
|
|
5
|
+
const M = m(
|
|
6
6
|
({
|
|
7
|
-
options:
|
|
8
|
-
optionLabel:
|
|
9
|
-
optionValue:
|
|
10
|
-
placeholder:
|
|
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:
|
|
17
|
-
...
|
|
16
|
+
htmlFor: o,
|
|
17
|
+
...n
|
|
18
18
|
}, j) => {
|
|
19
|
-
const [
|
|
19
|
+
const [p, S] = b(n.value ?? null);
|
|
20
20
|
V(() => {
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
const
|
|
24
|
-
return /* @__PURE__ */
|
|
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:
|
|
27
|
+
id: o,
|
|
28
28
|
displayEmpty: !0,
|
|
29
29
|
fullWidth: !0,
|
|
30
30
|
defaultValue: "",
|
|
31
31
|
ref: j,
|
|
32
|
-
renderValue:
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
|
|
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__ */
|
|
41
|
+
return /* @__PURE__ */ u.jsx("span", { style: { color: "var(--mui-palette-text-secondary)" }, children: d });
|
|
39
42
|
if (g)
|
|
40
|
-
return
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
+
return a(r);
|
|
44
|
+
const f = t.find((s) => l(s) === l(r));
|
|
45
|
+
return f ? a(f) : "";
|
|
43
46
|
},
|
|
44
|
-
...
|
|
45
|
-
value:
|
|
46
|
-
children:
|
|
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:
|
|
51
|
-
children:
|
|
53
|
+
value: l(e),
|
|
54
|
+
children: a(e)
|
|
52
55
|
},
|
|
53
|
-
`${
|
|
56
|
+
`${l(e)}-${r}`
|
|
54
57
|
))
|
|
55
58
|
}
|
|
56
59
|
) });
|