@solostylist/ui-kit 1.0.53 → 1.0.55
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-BOnkyXg-.js → Box-MoP3r0T2.js} +13 -14
- package/dist/Close-DLG48sGB.js +8 -0
- package/dist/HelpOutlineOutlined-CBZQGWGK.js +8 -0
- package/dist/{Menu-BTGaz6HX.js → Menu-Y8dE9GrA.js} +30 -31
- package/dist/{Stack-CHCAZYKm.js → Stack-DT2aopM5.js} +5 -5
- package/dist/{TransitionGroup-CuA3gNyE.js → TransitionGroup-BCkqyHLn.js} +1 -1
- package/dist/{Typography-8CUP66S2.js → Typography-BXwj4yQZ.js} +5 -5
- package/dist/{buttonBaseClasses-CTVeu_V8.js → buttonBaseClasses-2-g8E4KG.js} +2 -2
- package/dist/createSvgIcon-YtxTUNwI.js +535 -0
- package/dist/{createTheme-CyFSna1a.js → createTheme-CozHbEju.js} +227 -225
- package/dist/{extendSxProp-C6KgcV1-.js → extendSxProp-BuqOAkIB.js} +1 -1
- package/dist/{iconButtonClasses-CpCspPuI.js → iconButtonClasses-Ba5VdL62.js} +2 -2
- package/dist/identifier-9JFYVRsR.js +246 -0
- package/dist/{index-BKXuuq9K.js → index-GaV7LHxy.js} +5 -5
- package/dist/{outlinedInputClasses-Y-zQ9ZHZ.js → outlinedInputClasses-MXXlnR_X.js} +2 -2
- package/dist/s-data-table/s-data-table.js +46 -48
- package/dist/s-dialog/s-dialog.js +13 -13
- package/dist/s-dialog-confirm/s-dialog-confirm.js +10 -10
- package/dist/s-dialog-message/s-dialog-message.js +8 -8
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-form/s-form.js +7 -7
- package/dist/s-label/s-label.js +7 -7
- package/dist/s-multi-select/s-multi-select.js +47 -49
- package/dist/s-smart-text-field/s-smart-text-field.js +3 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +614 -602
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-tip/s-tip.js +12 -10
- package/dist/theme/components/avatar.js +7 -5
- package/dist/theme/customizations/data-display.js +8 -8
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +13 -14
- package/dist/theme/customizations/navigation.js +3 -3
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-DVLfmcGt.js → typographyClasses-D511Gj84.js} +2 -2
- package/dist/{useControlled-DnifWmuD.js → useFormControl-B3RPiDsz.js} +8 -8
- package/dist/{useSlot-DFX3jR9F.js → useSlot-GW4ou7g5.js} +18 -19
- package/dist/{useTheme-TEQWKSsD.js → useTheme-vk3BYrgD.js} +1 -1
- package/package.json +1 -2
- package/dist/createSvgIcon-FIMSBrG5.js +0 -247
- package/dist/emotion-serialize.esm-lgBmL_7o.js +0 -195
- package/dist/generateUtilityClasses-CvAVhM6T.js +0 -10
- package/dist/identifier-BA7fwE7E.js +0 -46
- package/dist/memoTheme-Bz_6CvJG.js +0 -293
- package/dist/svgIconClasses-SRBiyaM8.js +0 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { C as p } from "../Close-DLG48sGB.js";
|
|
4
|
+
import { Dialog as g, DialogTitle as j, Stack as D, IconButton as v, DialogContent as y, DialogActions as b, Button as d } from "@mui/material";
|
|
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-BXwj4yQZ.js";
|
|
7
7
|
const w = ({
|
|
8
8
|
title: o,
|
|
9
9
|
content: e,
|
|
@@ -15,13 +15,13 @@ const w = ({
|
|
|
15
15
|
maxWidth: a = "sm",
|
|
16
16
|
showClose: c = !0,
|
|
17
17
|
loading: l = !1
|
|
18
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
19
|
-
o && /* @__PURE__ */ n.jsx(
|
|
18
|
+
}) => /* @__PURE__ */ n.jsxs(g, { fullWidth: !0, maxWidth: a, onClose: i, open: t, children: [
|
|
19
|
+
o && /* @__PURE__ */ n.jsx(j, { children: /* @__PURE__ */ n.jsxs(D, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
20
20
|
typeof o == "string" ? /* @__PURE__ */ n.jsx(m, { variant: "h5", textTransform: "capitalize", children: o }) : /* @__PURE__ */ n.jsx("div", { children: o }),
|
|
21
|
-
c && /* @__PURE__ */ n.jsx(
|
|
21
|
+
c && /* @__PURE__ */ n.jsx(v, { onClick: i, children: /* @__PURE__ */ n.jsx(p, {}) })
|
|
22
22
|
] }) }),
|
|
23
|
-
e && /* @__PURE__ */ n.jsx(
|
|
24
|
-
/* @__PURE__ */ n.jsx(
|
|
23
|
+
e && /* @__PURE__ */ n.jsx(y, { children: typeof e == "string" ? /* @__PURE__ */ n.jsx(m, { color: "text.secondary", variant: "body2", children: e }) : e }),
|
|
24
|
+
/* @__PURE__ */ n.jsx(b, { children: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
25
25
|
/* @__PURE__ */ n.jsx(d, { onClick: i, variant: "outlined", disabled: l, children: "Cancel" }),
|
|
26
26
|
/* @__PURE__ */ n.jsx(d, { onClick: s, disabled: l, children: "Confirm" })
|
|
27
27
|
] }) })
|
|
@@ -34,8 +34,8 @@ const w = ({
|
|
|
34
34
|
}), c = {
|
|
35
35
|
handleOpen: r.useCallback(
|
|
36
36
|
(x) => {
|
|
37
|
-
const { title:
|
|
38
|
-
a({ title:
|
|
37
|
+
const { title: C, content: h, onConfirm: u } = x;
|
|
38
|
+
a({ title: C, content: h, onConfirm: u }), e.handleOpen();
|
|
39
39
|
},
|
|
40
40
|
[e]
|
|
41
41
|
),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { C as u } from "../Close-DLG48sGB.js";
|
|
4
|
+
import { Dialog as p, DialogTitle as g, Stack as m, IconButton as j, DialogContent as C, DialogActions as f, Button as D } from "@mui/material";
|
|
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-BXwj4yQZ.js";
|
|
7
7
|
const v = ({
|
|
8
8
|
title: t,
|
|
9
9
|
content: e,
|
|
@@ -14,13 +14,13 @@ const v = ({
|
|
|
14
14
|
open: i = !1,
|
|
15
15
|
maxWidth: l = "sm",
|
|
16
16
|
showClose: a = !0
|
|
17
|
-
}) => /* @__PURE__ */ o.jsxs(
|
|
18
|
-
t && /* @__PURE__ */ o.jsx(
|
|
17
|
+
}) => /* @__PURE__ */ o.jsxs(p, { fullWidth: !0, maxWidth: l, onClose: n, open: i, children: [
|
|
18
|
+
t && /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsxs(m, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
19
19
|
typeof t == "string" ? /* @__PURE__ */ o.jsx(c, { variant: "h5", textTransform: "capitalize", children: t }) : /* @__PURE__ */ o.jsx("div", { children: t }),
|
|
20
|
-
a && /* @__PURE__ */ o.jsx(
|
|
20
|
+
a && /* @__PURE__ */ o.jsx(j, { onClick: n, children: /* @__PURE__ */ o.jsx(u, {}) })
|
|
21
21
|
] }) }),
|
|
22
|
-
e && /* @__PURE__ */ o.jsx(
|
|
23
|
-
/* @__PURE__ */ o.jsx(f, { children: /* @__PURE__ */ o.jsx(
|
|
22
|
+
e && /* @__PURE__ */ o.jsx(C, { 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(D, { onClick: r, children: "Ok" }) })
|
|
24
24
|
] }), d = s.createContext(null), I = ({ children: t }) => {
|
|
25
25
|
const e = k(), [n, r] = s.useState({
|
|
26
26
|
title: "",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { c as p } from "../createSvgIcon-
|
|
2
|
+
import { c as p } from "../createSvgIcon-YtxTUNwI.js";
|
|
3
3
|
import { Avatar as y, Tooltip as b, IconButton as C, Button as I } from "@mui/material";
|
|
4
4
|
import { useDropzone as z } from "react-dropzone";
|
|
5
5
|
import S from "../s-file-icon/s-file-icon.js";
|
|
6
6
|
import k from "../s-form/s-form.js";
|
|
7
7
|
import { bytesToSize as w } from "../utils/bytes-to-size.js";
|
|
8
|
-
import { S as t } from "../Stack-
|
|
9
|
-
import { B as d } from "../Box-
|
|
10
|
-
import { T as o } from "../Typography-
|
|
8
|
+
import { S as t } from "../Stack-DT2aopM5.js";
|
|
9
|
+
import { B as d } from "../Box-MoP3r0T2.js";
|
|
10
|
+
import { T as o } from "../Typography-BXwj4yQZ.js";
|
|
11
11
|
const B = p(/* @__PURE__ */ e.jsx("path", {
|
|
12
12
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
13
13
|
}), "CloseOutlined"), D = p(/* @__PURE__ */ e.jsx("path", {
|
package/dist/s-form/s-form.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const f = ({ label: t, hint: o, error: l, required: r, children:
|
|
5
|
-
t ? /* @__PURE__ */ e.jsxs(
|
|
2
|
+
import { H as i } from "../HelpOutlineOutlined-CBZQGWGK.js";
|
|
3
|
+
import { FormControl as m, FormLabel as p, Tooltip as x, FormHelperText as u } from "@mui/material";
|
|
4
|
+
const f = ({ label: t, hint: o, error: l, required: r, children: n, htmlFor: s }) => /* @__PURE__ */ e.jsxs(m, { error: !!l, fullWidth: !0, children: [
|
|
5
|
+
t ? /* @__PURE__ */ e.jsxs(p, { htmlFor: s, required: r, sx: { display: "flex", alignItems: "center" }, children: [
|
|
6
6
|
t,
|
|
7
7
|
" ",
|
|
8
|
-
o ? /* @__PURE__ */ e.jsx(
|
|
8
|
+
o ? /* @__PURE__ */ e.jsx(x, { title: o, placement: "top", children: /* @__PURE__ */ e.jsx(i, { style: { marginLeft: "4px", fontSize: 14 } }) }) : null
|
|
9
9
|
] }) : null,
|
|
10
|
-
|
|
11
|
-
l ? /* @__PURE__ */ e.jsx(
|
|
10
|
+
n,
|
|
11
|
+
l ? /* @__PURE__ */ e.jsx(u, { children: l }) : null
|
|
12
12
|
] });
|
|
13
13
|
export {
|
|
14
14
|
f as default
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
2
|
+
import { H as s } from "../HelpOutlineOutlined-CBZQGWGK.js";
|
|
3
|
+
import { Stack as i, Tooltip as a } from "@mui/material";
|
|
4
|
+
const p = ({ label: n, content: r, children: l, hint: t, sx: o }) => /* @__PURE__ */ e.jsxs(i, { width: "100%", sx: o, children: [
|
|
5
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:
|
|
7
|
-
t ? /* @__PURE__ */ e.jsx(
|
|
6
|
+
/* @__PURE__ */ e.jsx("div", { style: { fontSize: "1rem", fontWeight: 500, lineHeight: 1.57 }, children: n }),
|
|
7
|
+
t ? /* @__PURE__ */ e.jsx(a, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(s, { style: { marginLeft: "4px", fontSize: 14 } }) }) : null
|
|
8
8
|
] }),
|
|
9
9
|
/* @__PURE__ */ e.jsx(
|
|
10
10
|
"div",
|
|
@@ -15,11 +15,11 @@ const d = ({ label: r, content: o, children: l, hint: t, sx: n }) => /* @__PURE_
|
|
|
15
15
|
lineHeight: 1.57,
|
|
16
16
|
color: "var(--s-palette-text-secondary)"
|
|
17
17
|
},
|
|
18
|
-
children:
|
|
18
|
+
children: r
|
|
19
19
|
}
|
|
20
20
|
),
|
|
21
21
|
l
|
|
22
22
|
] });
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
p as default
|
|
25
25
|
};
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { j as l } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import { c as T } from "../createSvgIcon-
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { usePopover as
|
|
6
|
-
import
|
|
7
|
-
import { L as h, M as
|
|
8
|
-
import { g as
|
|
9
|
-
import { c as R } from "../identifier-
|
|
10
|
-
import { u as F, s as z, c as G, b as W, m as A } from "../memoTheme-Bz_6CvJG.js";
|
|
11
|
-
import { g } from "../generateUtilityClasses-CvAVhM6T.js";
|
|
3
|
+
import { c as T, u as N, s as E, a as P, f as B, m as U } from "../createSvgIcon-YtxTUNwI.js";
|
|
4
|
+
import { Stack as D, OutlinedInput as F } from "@mui/material";
|
|
5
|
+
import { usePopover as z } from "../hooks/use-popover.js";
|
|
6
|
+
import G from "../s-chips/s-chips.js";
|
|
7
|
+
import { L as h, M as W } from "../Menu-Y8dE9GrA.js";
|
|
8
|
+
import { g as A, a as v, P as s } from "../createTheme-CozHbEju.js";
|
|
9
|
+
import { g, c as R } from "../identifier-9JFYVRsR.js";
|
|
12
10
|
import { u as H } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
13
|
-
import { u as _, B as q } from "../useSlot-
|
|
11
|
+
import { u as _, B as q } from "../useSlot-GW4ou7g5.js";
|
|
14
12
|
const J = T(/* @__PURE__ */ l.jsx("path", {
|
|
15
13
|
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"
|
|
16
14
|
}), "UnfoldMore"), j = g("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), S = g("MuiListItemIcon", ["root", "alignItemsFlexStart"]), k = g("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
17
15
|
function K(e) {
|
|
18
|
-
return
|
|
16
|
+
return A("MuiMenuItem", e);
|
|
19
17
|
}
|
|
20
18
|
const b = g("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), Q = (e, t) => {
|
|
21
19
|
const {
|
|
@@ -30,19 +28,19 @@ const b = g("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
30
28
|
disableGutters: u,
|
|
31
29
|
selected: n,
|
|
32
30
|
classes: i
|
|
33
|
-
} = e, d =
|
|
31
|
+
} = e, d = P({
|
|
34
32
|
root: ["root", r && "dense", t && "disabled", !u && "gutters", a && "divider", n && "selected"]
|
|
35
33
|
}, K, i);
|
|
36
34
|
return {
|
|
37
35
|
...i,
|
|
38
36
|
...d
|
|
39
37
|
};
|
|
40
|
-
}, Y =
|
|
41
|
-
shouldForwardProp: (e) =>
|
|
38
|
+
}, Y = E(q, {
|
|
39
|
+
shouldForwardProp: (e) => B(e) || e === "classes",
|
|
42
40
|
name: "MuiMenuItem",
|
|
43
41
|
slot: "Root",
|
|
44
42
|
overridesResolver: Q
|
|
45
|
-
})(
|
|
43
|
+
})(U(({
|
|
46
44
|
theme: e
|
|
47
45
|
}) => ({
|
|
48
46
|
...e.typography.body1,
|
|
@@ -141,7 +139,7 @@ const b = g("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
141
139
|
}
|
|
142
140
|
}]
|
|
143
141
|
}))), w = /* @__PURE__ */ c.forwardRef(function(t, r) {
|
|
144
|
-
const a =
|
|
142
|
+
const a = N({
|
|
145
143
|
props: t,
|
|
146
144
|
name: "MuiMenuItem"
|
|
147
145
|
}), {
|
|
@@ -151,7 +149,7 @@ const b = g("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
151
149
|
divider: m = !1,
|
|
152
150
|
disableGutters: d = !1,
|
|
153
151
|
focusVisibleClassName: y,
|
|
154
|
-
role:
|
|
152
|
+
role: o = "menuitem",
|
|
155
153
|
tabIndex: p,
|
|
156
154
|
className: f,
|
|
157
155
|
...x
|
|
@@ -173,7 +171,7 @@ const b = g("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
173
171
|
value: $,
|
|
174
172
|
children: /* @__PURE__ */ l.jsx(Y, {
|
|
175
173
|
ref: L,
|
|
176
|
-
role:
|
|
174
|
+
role: o,
|
|
177
175
|
tabIndex: O,
|
|
178
176
|
component: n,
|
|
179
177
|
focusVisibleClassName: R(I.focusVisible, y),
|
|
@@ -194,44 +192,44 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
194
192
|
* Focus will also be triggered if the value changes from false to true.
|
|
195
193
|
* @default false
|
|
196
194
|
*/
|
|
197
|
-
autoFocus:
|
|
195
|
+
autoFocus: s.bool,
|
|
198
196
|
/**
|
|
199
197
|
* The content of the component.
|
|
200
198
|
*/
|
|
201
|
-
children:
|
|
199
|
+
children: s.node,
|
|
202
200
|
/**
|
|
203
201
|
* Override or extend the styles applied to the component.
|
|
204
202
|
*/
|
|
205
|
-
classes:
|
|
203
|
+
classes: s.object,
|
|
206
204
|
/**
|
|
207
205
|
* @ignore
|
|
208
206
|
*/
|
|
209
|
-
className:
|
|
207
|
+
className: s.string,
|
|
210
208
|
/**
|
|
211
209
|
* The component used for the root node.
|
|
212
210
|
* Either a string to use a HTML element or a component.
|
|
213
211
|
*/
|
|
214
|
-
component:
|
|
212
|
+
component: s.elementType,
|
|
215
213
|
/**
|
|
216
214
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
217
215
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
218
216
|
* @default false
|
|
219
217
|
*/
|
|
220
|
-
dense:
|
|
218
|
+
dense: s.bool,
|
|
221
219
|
/**
|
|
222
220
|
* @ignore
|
|
223
221
|
*/
|
|
224
|
-
disabled:
|
|
222
|
+
disabled: s.bool,
|
|
225
223
|
/**
|
|
226
224
|
* If `true`, the left and right padding is removed.
|
|
227
225
|
* @default false
|
|
228
226
|
*/
|
|
229
|
-
disableGutters:
|
|
227
|
+
disableGutters: s.bool,
|
|
230
228
|
/**
|
|
231
229
|
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
232
230
|
* @default false
|
|
233
231
|
*/
|
|
234
|
-
divider:
|
|
232
|
+
divider: s.bool,
|
|
235
233
|
/**
|
|
236
234
|
* This prop can help identify which element has keyboard focus.
|
|
237
235
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -240,46 +238,46 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
240
238
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
241
239
|
* if needed.
|
|
242
240
|
*/
|
|
243
|
-
focusVisibleClassName:
|
|
241
|
+
focusVisibleClassName: s.string,
|
|
244
242
|
/**
|
|
245
243
|
* @ignore
|
|
246
244
|
*/
|
|
247
|
-
role:
|
|
245
|
+
role: s.string,
|
|
248
246
|
/**
|
|
249
247
|
* If `true`, the component is selected.
|
|
250
248
|
* @default false
|
|
251
249
|
*/
|
|
252
|
-
selected:
|
|
250
|
+
selected: s.bool,
|
|
253
251
|
/**
|
|
254
252
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
255
253
|
*/
|
|
256
|
-
sx:
|
|
254
|
+
sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]),
|
|
257
255
|
/**
|
|
258
256
|
* @default 0
|
|
259
257
|
*/
|
|
260
|
-
tabIndex:
|
|
258
|
+
tabIndex: s.number
|
|
261
259
|
});
|
|
262
|
-
function
|
|
260
|
+
function ce({
|
|
263
261
|
label: e,
|
|
264
262
|
onChange: t,
|
|
265
263
|
options: r,
|
|
266
264
|
value: a = [],
|
|
267
265
|
chipProps: u
|
|
268
266
|
}) {
|
|
269
|
-
const n =
|
|
267
|
+
const n = z(), i = c.useRef(null), [m, d] = c.useState();
|
|
270
268
|
c.useEffect(() => {
|
|
271
269
|
i.current && d(i.current.offsetWidth);
|
|
272
270
|
}, [n.open]);
|
|
273
271
|
const y = c.useCallback(
|
|
274
|
-
(
|
|
272
|
+
(o, p) => {
|
|
275
273
|
let f = [...a];
|
|
276
|
-
p ? f.push(
|
|
274
|
+
p ? f.push(o) : f = f.filter((x) => x !== o), t == null || t(f);
|
|
277
275
|
},
|
|
278
276
|
[t, a]
|
|
279
277
|
);
|
|
280
|
-
return /* @__PURE__ */ l.jsxs(
|
|
278
|
+
return /* @__PURE__ */ l.jsxs(D, { direction: "column", gap: 1, children: [
|
|
281
279
|
/* @__PURE__ */ l.jsx(
|
|
282
|
-
|
|
280
|
+
F,
|
|
283
281
|
{
|
|
284
282
|
endAdornment: /* @__PURE__ */ l.jsx(
|
|
285
283
|
J,
|
|
@@ -289,8 +287,8 @@ function pe({
|
|
|
289
287
|
}
|
|
290
288
|
),
|
|
291
289
|
onClick: n.handleOpen,
|
|
292
|
-
ref: (
|
|
293
|
-
n.anchorRef.current =
|
|
290
|
+
ref: (o) => {
|
|
291
|
+
n.anchorRef.current = o, i.current = o;
|
|
294
292
|
},
|
|
295
293
|
value: e,
|
|
296
294
|
sx: {
|
|
@@ -301,37 +299,37 @@ function pe({
|
|
|
301
299
|
}
|
|
302
300
|
),
|
|
303
301
|
/* @__PURE__ */ l.jsx(
|
|
304
|
-
|
|
302
|
+
W,
|
|
305
303
|
{
|
|
306
304
|
anchorEl: n.anchorRef.current,
|
|
307
305
|
onClose: n.handleClose,
|
|
308
306
|
open: n.open,
|
|
309
307
|
slotProps: { paper: { sx: { width: m ? `${m}px` : void 0 } } },
|
|
310
|
-
children: r.map((
|
|
311
|
-
const p = a.includes(
|
|
308
|
+
children: r.map((o) => {
|
|
309
|
+
const p = a.includes(o.value);
|
|
312
310
|
return /* @__PURE__ */ l.jsx(
|
|
313
311
|
w,
|
|
314
312
|
{
|
|
315
313
|
onClick: () => {
|
|
316
|
-
y(
|
|
314
|
+
y(o.value, !p);
|
|
317
315
|
},
|
|
318
316
|
selected: p,
|
|
319
|
-
children:
|
|
317
|
+
children: o.label
|
|
320
318
|
},
|
|
321
|
-
|
|
319
|
+
o.label
|
|
322
320
|
);
|
|
323
321
|
})
|
|
324
322
|
}
|
|
325
323
|
),
|
|
326
324
|
/* @__PURE__ */ l.jsx(
|
|
327
|
-
|
|
325
|
+
G,
|
|
328
326
|
{
|
|
329
|
-
chips: r.filter((
|
|
327
|
+
chips: r.filter((o) => a.includes(o.value)).map((o) => o.label),
|
|
330
328
|
...u
|
|
331
329
|
}
|
|
332
330
|
)
|
|
333
331
|
] });
|
|
334
332
|
}
|
|
335
333
|
export {
|
|
336
|
-
|
|
334
|
+
ce as default
|
|
337
335
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { j as V } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as j from "react";
|
|
3
3
|
import ge, { useState as Oe, useCallback as pe, createContext as Qt, useContext as wn, useEffect as ke, useRef as Ae, useReducer as Bi, useMemo as yt, useLayoutEffect as Ya, Component as Iv, memo as Rv, forwardRef as en, createElement as rt, Children as ar, isValidElement as wa, cloneElement as Pu, Fragment as vp } from "react";
|
|
4
|
-
import { P as I, l as Il } from "../createTheme-
|
|
4
|
+
import { P as I, l as Il } from "../createTheme-CozHbEju.js";
|
|
5
5
|
import { g as Nn, c as Vn, a as qn } from "../_commonjsHelpers-B4e78b8K.js";
|
|
6
6
|
import { v4 as yp } from "uuid";
|
|
7
7
|
import Iu, { flushSync as Ru } from "react-dom";
|
|
8
|
-
import { c as de, a as Ft, T as $v } from "../TransitionGroup-
|
|
8
|
+
import { c as de, a as Ft, T as $v } from "../TransitionGroup-BCkqyHLn.js";
|
|
9
9
|
import Mv from "@emotion/styled";
|
|
10
10
|
import { CacheProvider as jv, Global as Lv, ThemeContext as _v, css as zv, keyframes as Xa } from "@emotion/react";
|
|
11
11
|
import bp from "@emotion/cache";
|
|
12
|
-
import {
|
|
12
|
+
import { b as Po } from "../identifier-9JFYVRsR.js";
|
|
13
13
|
import { styled as Vv, alpha as Rl, outlinedInputClasses as Uv } from "@mui/material";
|
|
14
14
|
import Wv from "../s-form/s-form.js";
|
|
15
15
|
import { brand as Hi, gray as $l } from "../theme/theme-primitives.js";
|