@solostylist/ui-kit 1.0.42 → 1.0.44
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/s-file-dropzone/s-file-dropzone.js +15 -16
- package/dist/s-multi-select/s-multi-select.js +140 -149
- package/dist/s-text-editor/s-text-editor-toolbar.js +150 -147
- package/dist/s-text-editor/s-text-editor.js +16 -17
- package/dist/theme/components/popover.js +1 -1
- package/dist/theme/customizations/navigation.js +22 -69
- package/package.json +1 -1
- package/dist/selectClasses-DWL9Cxkn.js +0 -10
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { Avatar as v, Tooltip as
|
|
3
|
-
import { IconCloudUp as S, IconX as
|
|
4
|
-
import { useDropzone as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { Avatar as v, Tooltip as y, IconButton as b, Button as I } from "@mui/material";
|
|
3
|
+
import { IconCloudUp as S, IconX as z } from "@tabler/icons-react";
|
|
4
|
+
import { useDropzone as C } from "react-dropzone";
|
|
5
|
+
import k from "../s-file-icon/s-file-icon.js";
|
|
6
|
+
import w from "../s-form/s-form.js";
|
|
7
7
|
import { bytesToSize as B } from "../utils/bytes-to-size.js";
|
|
8
8
|
import { S as r } from "../Stack-CHCAZYKm.js";
|
|
9
|
-
import { B as
|
|
9
|
+
import { B as p } from "../Box-BOnkyXg-.js";
|
|
10
10
|
import { T as o } from "../Typography-8CUP66S2.js";
|
|
11
11
|
const H = ({
|
|
12
12
|
caption: i,
|
|
13
|
-
label:
|
|
13
|
+
label: d = "",
|
|
14
14
|
error: x,
|
|
15
15
|
onRemoveAll: m,
|
|
16
16
|
onUpload: D,
|
|
@@ -21,10 +21,10 @@ const H = ({
|
|
|
21
21
|
...n
|
|
22
22
|
}) => {
|
|
23
23
|
var l, c;
|
|
24
|
-
const { getRootProps: u, getInputProps: g, isDragActive: a } =
|
|
25
|
-
return /* @__PURE__ */ e.jsxs(
|
|
24
|
+
const { getRootProps: u, getInputProps: g, isDragActive: a } = C(n);
|
|
25
|
+
return /* @__PURE__ */ e.jsxs(w, { error: x, label: d, required: h, children: [
|
|
26
26
|
/* @__PURE__ */ e.jsx(r, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
|
|
27
|
-
|
|
27
|
+
p,
|
|
28
28
|
{
|
|
29
29
|
sx: {
|
|
30
30
|
alignItems: "center",
|
|
@@ -55,7 +55,6 @@ const H = ({
|
|
|
55
55
|
{
|
|
56
56
|
sx: {
|
|
57
57
|
bgcolor: "var(--s-palette-background-paper)",
|
|
58
|
-
boxShadow: "var(--s-shadows-8)",
|
|
59
58
|
color: "var(--s-palette-text-primary)"
|
|
60
59
|
},
|
|
61
60
|
children: /* @__PURE__ */ e.jsx(S, {})
|
|
@@ -90,18 +89,18 @@ const H = ({
|
|
|
90
89
|
p: 1
|
|
91
90
|
},
|
|
92
91
|
children: [
|
|
93
|
-
/* @__PURE__ */ e.jsx(
|
|
94
|
-
/* @__PURE__ */ e.jsxs(
|
|
92
|
+
/* @__PURE__ */ e.jsx(k, { extension: f }),
|
|
93
|
+
/* @__PURE__ */ e.jsxs(p, { sx: { flex: "1 1 auto" }, children: [
|
|
95
94
|
/* @__PURE__ */ e.jsx(o, { variant: "subtitle2", children: t.name }),
|
|
96
95
|
/* @__PURE__ */ e.jsx(o, { color: "text.secondary", variant: "body2", children: B(t.size) })
|
|
97
96
|
] }),
|
|
98
|
-
/* @__PURE__ */ e.jsx(
|
|
99
|
-
|
|
97
|
+
/* @__PURE__ */ e.jsx(y, { title: "Remove", children: /* @__PURE__ */ e.jsx(
|
|
98
|
+
b,
|
|
100
99
|
{
|
|
101
100
|
onClick: () => {
|
|
102
101
|
s == null || s(t);
|
|
103
102
|
},
|
|
104
|
-
children: /* @__PURE__ */ e.jsx(
|
|
103
|
+
children: /* @__PURE__ */ e.jsx(z, {})
|
|
105
104
|
}
|
|
106
105
|
) })
|
|
107
106
|
]
|
|
@@ -1,49 +1,48 @@
|
|
|
1
1
|
import { j as l } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { usePopover as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { c as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { u as q } from "../
|
|
14
|
-
|
|
15
|
-
const Q = N(/* @__PURE__ */ l.jsx("path", {
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { c as T } from "../createSvgIcon-FIMSBrG5.js";
|
|
4
|
+
import { Stack as N, OutlinedInput as E } from "@mui/material";
|
|
5
|
+
import { usePopover as P } from "../hooks/use-popover.js";
|
|
6
|
+
import B from "../s-chips/s-chips.js";
|
|
7
|
+
import { L as h, M as U } from "../Menu-BTGaz6HX.js";
|
|
8
|
+
import { g as D, a as v, P as o } from "../createTheme-CyFSna1a.js";
|
|
9
|
+
import { c as R } from "../identifier-BA7fwE7E.js";
|
|
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";
|
|
12
|
+
import { u as H } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
13
|
+
import { u as _, B as q } from "../useSlot-DFX3jR9F.js";
|
|
14
|
+
const J = T(/* @__PURE__ */ l.jsx("path", {
|
|
16
15
|
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"
|
|
17
|
-
}), "UnfoldMore"),
|
|
18
|
-
function
|
|
19
|
-
return
|
|
16
|
+
}), "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
|
+
function K(e) {
|
|
18
|
+
return D("MuiMenuItem", e);
|
|
20
19
|
}
|
|
21
|
-
const
|
|
20
|
+
const b = g("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), Q = (e, t) => {
|
|
22
21
|
const {
|
|
23
22
|
ownerState: r
|
|
24
23
|
} = e;
|
|
25
|
-
return [
|
|
26
|
-
},
|
|
24
|
+
return [t.root, r.dense && t.dense, r.divider && t.divider, !r.disableGutters && t.gutters];
|
|
25
|
+
}, X = (e) => {
|
|
27
26
|
const {
|
|
28
|
-
disabled:
|
|
27
|
+
disabled: t,
|
|
29
28
|
dense: r,
|
|
30
29
|
divider: a,
|
|
31
|
-
disableGutters:
|
|
32
|
-
selected:
|
|
33
|
-
classes:
|
|
34
|
-
} = e,
|
|
35
|
-
root: ["root", r && "dense",
|
|
36
|
-
},
|
|
30
|
+
disableGutters: u,
|
|
31
|
+
selected: n,
|
|
32
|
+
classes: i
|
|
33
|
+
} = e, d = G({
|
|
34
|
+
root: ["root", r && "dense", t && "disabled", !u && "gutters", a && "divider", n && "selected"]
|
|
35
|
+
}, K, i);
|
|
37
36
|
return {
|
|
38
|
-
...
|
|
39
|
-
...
|
|
37
|
+
...i,
|
|
38
|
+
...d
|
|
40
39
|
};
|
|
41
|
-
},
|
|
40
|
+
}, Y = z(q, {
|
|
42
41
|
shouldForwardProp: (e) => W(e) || e === "classes",
|
|
43
42
|
name: "MuiMenuItem",
|
|
44
43
|
slot: "Root",
|
|
45
|
-
overridesResolver:
|
|
46
|
-
})(
|
|
44
|
+
overridesResolver: Q
|
|
45
|
+
})(A(({
|
|
47
46
|
theme: e
|
|
48
47
|
}) => ({
|
|
49
48
|
...e.typography.body1,
|
|
@@ -65,62 +64,62 @@ const u = b("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
65
64
|
backgroundColor: "transparent"
|
|
66
65
|
}
|
|
67
66
|
},
|
|
68
|
-
[`&.${
|
|
69
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
70
|
-
[`&.${
|
|
71
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
67
|
+
[`&.${b.selected}`]: {
|
|
68
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : v(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
69
|
+
[`&.${b.focusVisible}`]: {
|
|
70
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : v(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
|
-
[`&.${
|
|
75
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
73
|
+
[`&.${b.selected}:hover`]: {
|
|
74
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : v(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
76
75
|
// Reset on touch devices, it doesn't add specificity
|
|
77
76
|
"@media (hover: none)": {
|
|
78
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
77
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : v(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
79
78
|
}
|
|
80
79
|
},
|
|
81
|
-
[`&.${
|
|
80
|
+
[`&.${b.focusVisible}`]: {
|
|
82
81
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
83
82
|
},
|
|
84
|
-
[`&.${
|
|
83
|
+
[`&.${b.disabled}`]: {
|
|
85
84
|
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
86
85
|
},
|
|
87
|
-
[`& + .${
|
|
86
|
+
[`& + .${j.root}`]: {
|
|
88
87
|
marginTop: e.spacing(1),
|
|
89
88
|
marginBottom: e.spacing(1)
|
|
90
89
|
},
|
|
91
|
-
[`& + .${
|
|
90
|
+
[`& + .${j.inset}`]: {
|
|
92
91
|
marginLeft: 52
|
|
93
92
|
},
|
|
94
|
-
[`& .${
|
|
93
|
+
[`& .${k.root}`]: {
|
|
95
94
|
marginTop: 0,
|
|
96
95
|
marginBottom: 0
|
|
97
96
|
},
|
|
98
|
-
[`& .${
|
|
97
|
+
[`& .${k.inset}`]: {
|
|
99
98
|
paddingLeft: 36
|
|
100
99
|
},
|
|
101
|
-
[`& .${
|
|
100
|
+
[`& .${S.root}`]: {
|
|
102
101
|
minWidth: 36
|
|
103
102
|
},
|
|
104
103
|
variants: [{
|
|
105
104
|
props: ({
|
|
106
|
-
ownerState:
|
|
107
|
-
}) => !
|
|
105
|
+
ownerState: t
|
|
106
|
+
}) => !t.disableGutters,
|
|
108
107
|
style: {
|
|
109
108
|
paddingLeft: 16,
|
|
110
109
|
paddingRight: 16
|
|
111
110
|
}
|
|
112
111
|
}, {
|
|
113
112
|
props: ({
|
|
114
|
-
ownerState:
|
|
115
|
-
}) =>
|
|
113
|
+
ownerState: t
|
|
114
|
+
}) => t.divider,
|
|
116
115
|
style: {
|
|
117
116
|
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
118
117
|
backgroundClip: "padding-box"
|
|
119
118
|
}
|
|
120
119
|
}, {
|
|
121
120
|
props: ({
|
|
122
|
-
ownerState:
|
|
123
|
-
}) => !
|
|
121
|
+
ownerState: t
|
|
122
|
+
}) => !t.dense,
|
|
124
123
|
style: {
|
|
125
124
|
[e.breakpoints.up("sm")]: {
|
|
126
125
|
minHeight: "auto"
|
|
@@ -128,64 +127,64 @@ const u = b("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
128
127
|
}
|
|
129
128
|
}, {
|
|
130
129
|
props: ({
|
|
131
|
-
ownerState:
|
|
132
|
-
}) =>
|
|
130
|
+
ownerState: t
|
|
131
|
+
}) => t.dense,
|
|
133
132
|
style: {
|
|
134
133
|
minHeight: 32,
|
|
135
134
|
// https://m2.material.io/components/menus#specs > Dense
|
|
136
135
|
paddingTop: 4,
|
|
137
136
|
paddingBottom: 4,
|
|
138
137
|
...e.typography.body2,
|
|
139
|
-
[`& .${
|
|
138
|
+
[`& .${S.root} svg`]: {
|
|
140
139
|
fontSize: "1.25rem"
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
}]
|
|
144
|
-
}))),
|
|
145
|
-
const a =
|
|
146
|
-
props:
|
|
143
|
+
}))), w = /* @__PURE__ */ c.forwardRef(function(t, r) {
|
|
144
|
+
const a = F({
|
|
145
|
+
props: t,
|
|
147
146
|
name: "MuiMenuItem"
|
|
148
147
|
}), {
|
|
149
|
-
autoFocus:
|
|
150
|
-
component:
|
|
151
|
-
dense:
|
|
152
|
-
divider:
|
|
153
|
-
disableGutters:
|
|
154
|
-
focusVisibleClassName:
|
|
155
|
-
role:
|
|
156
|
-
tabIndex:
|
|
157
|
-
className:
|
|
158
|
-
...
|
|
159
|
-
} = a,
|
|
160
|
-
dense:
|
|
161
|
-
disableGutters:
|
|
162
|
-
}), [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}, [
|
|
166
|
-
const
|
|
148
|
+
autoFocus: u = !1,
|
|
149
|
+
component: n = "li",
|
|
150
|
+
dense: i = !1,
|
|
151
|
+
divider: m = !1,
|
|
152
|
+
disableGutters: d = !1,
|
|
153
|
+
focusVisibleClassName: y,
|
|
154
|
+
role: s = "menuitem",
|
|
155
|
+
tabIndex: p,
|
|
156
|
+
className: f,
|
|
157
|
+
...x
|
|
158
|
+
} = a, M = c.useContext(h), $ = c.useMemo(() => ({
|
|
159
|
+
dense: i || M.dense || !1,
|
|
160
|
+
disableGutters: d
|
|
161
|
+
}), [M.dense, i, d]), C = c.useRef(null);
|
|
162
|
+
H(() => {
|
|
163
|
+
u && (C.current ? C.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
164
|
+
}, [u]);
|
|
165
|
+
const V = {
|
|
167
166
|
...a,
|
|
168
|
-
dense:
|
|
169
|
-
divider:
|
|
170
|
-
disableGutters:
|
|
171
|
-
},
|
|
172
|
-
let
|
|
173
|
-
return a.disabled || (
|
|
174
|
-
value:
|
|
175
|
-
children: /* @__PURE__ */ l.jsx(
|
|
176
|
-
ref:
|
|
177
|
-
role:
|
|
178
|
-
tabIndex:
|
|
179
|
-
component:
|
|
180
|
-
focusVisibleClassName:
|
|
181
|
-
className:
|
|
182
|
-
...
|
|
183
|
-
ownerState:
|
|
184
|
-
classes:
|
|
167
|
+
dense: $.dense,
|
|
168
|
+
divider: m,
|
|
169
|
+
disableGutters: d
|
|
170
|
+
}, I = X(a), L = _(C, r);
|
|
171
|
+
let O;
|
|
172
|
+
return a.disabled || (O = p !== void 0 ? p : -1), /* @__PURE__ */ l.jsx(h.Provider, {
|
|
173
|
+
value: $,
|
|
174
|
+
children: /* @__PURE__ */ l.jsx(Y, {
|
|
175
|
+
ref: L,
|
|
176
|
+
role: s,
|
|
177
|
+
tabIndex: O,
|
|
178
|
+
component: n,
|
|
179
|
+
focusVisibleClassName: R(I.focusVisible, y),
|
|
180
|
+
className: R(I.root, f),
|
|
181
|
+
...x,
|
|
182
|
+
ownerState: V,
|
|
183
|
+
classes: I
|
|
185
184
|
})
|
|
186
185
|
});
|
|
187
186
|
});
|
|
188
|
-
process.env.NODE_ENV !== "production" && (
|
|
187
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
189
188
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
190
189
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
191
190
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -195,44 +194,44 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
195
194
|
* Focus will also be triggered if the value changes from false to true.
|
|
196
195
|
* @default false
|
|
197
196
|
*/
|
|
198
|
-
autoFocus:
|
|
197
|
+
autoFocus: o.bool,
|
|
199
198
|
/**
|
|
200
199
|
* The content of the component.
|
|
201
200
|
*/
|
|
202
|
-
children:
|
|
201
|
+
children: o.node,
|
|
203
202
|
/**
|
|
204
203
|
* Override or extend the styles applied to the component.
|
|
205
204
|
*/
|
|
206
|
-
classes:
|
|
205
|
+
classes: o.object,
|
|
207
206
|
/**
|
|
208
207
|
* @ignore
|
|
209
208
|
*/
|
|
210
|
-
className:
|
|
209
|
+
className: o.string,
|
|
211
210
|
/**
|
|
212
211
|
* The component used for the root node.
|
|
213
212
|
* Either a string to use a HTML element or a component.
|
|
214
213
|
*/
|
|
215
|
-
component:
|
|
214
|
+
component: o.elementType,
|
|
216
215
|
/**
|
|
217
216
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
218
217
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
219
218
|
* @default false
|
|
220
219
|
*/
|
|
221
|
-
dense:
|
|
220
|
+
dense: o.bool,
|
|
222
221
|
/**
|
|
223
222
|
* @ignore
|
|
224
223
|
*/
|
|
225
|
-
disabled:
|
|
224
|
+
disabled: o.bool,
|
|
226
225
|
/**
|
|
227
226
|
* If `true`, the left and right padding is removed.
|
|
228
227
|
* @default false
|
|
229
228
|
*/
|
|
230
|
-
disableGutters:
|
|
229
|
+
disableGutters: o.bool,
|
|
231
230
|
/**
|
|
232
231
|
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
233
232
|
* @default false
|
|
234
233
|
*/
|
|
235
|
-
divider:
|
|
234
|
+
divider: o.bool,
|
|
236
235
|
/**
|
|
237
236
|
* This prop can help identify which element has keyboard focus.
|
|
238
237
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -241,90 +240,82 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
241
240
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
242
241
|
* if needed.
|
|
243
242
|
*/
|
|
244
|
-
focusVisibleClassName:
|
|
243
|
+
focusVisibleClassName: o.string,
|
|
245
244
|
/**
|
|
246
245
|
* @ignore
|
|
247
246
|
*/
|
|
248
|
-
role:
|
|
247
|
+
role: o.string,
|
|
249
248
|
/**
|
|
250
249
|
* If `true`, the component is selected.
|
|
251
250
|
* @default false
|
|
252
251
|
*/
|
|
253
|
-
selected:
|
|
252
|
+
selected: o.bool,
|
|
254
253
|
/**
|
|
255
254
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
256
255
|
*/
|
|
257
|
-
sx:
|
|
256
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
258
257
|
/**
|
|
259
258
|
* @default 0
|
|
260
259
|
*/
|
|
261
|
-
tabIndex:
|
|
260
|
+
tabIndex: o.number
|
|
262
261
|
});
|
|
263
|
-
function
|
|
262
|
+
function pe({
|
|
264
263
|
label: e,
|
|
265
|
-
onChange:
|
|
264
|
+
onChange: t,
|
|
266
265
|
options: r,
|
|
267
266
|
value: a = [],
|
|
268
|
-
chipProps:
|
|
267
|
+
chipProps: u
|
|
269
268
|
}) {
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
269
|
+
const n = P(), i = c.useRef(null), [m, d] = c.useState();
|
|
270
|
+
c.useEffect(() => {
|
|
271
|
+
i.current && d(i.current.offsetWidth);
|
|
272
|
+
}, [n.open]);
|
|
273
|
+
const y = c.useCallback(
|
|
274
|
+
(s, p) => {
|
|
275
|
+
let f = [...a];
|
|
276
|
+
p ? f.push(s) : f = f.filter((x) => x !== s), t == null || t(f);
|
|
274
277
|
},
|
|
275
|
-
[
|
|
278
|
+
[t, a]
|
|
276
279
|
);
|
|
277
|
-
return /* @__PURE__ */ l.jsxs(
|
|
280
|
+
return /* @__PURE__ */ l.jsxs(N, { direction: "column", gap: 1, children: [
|
|
278
281
|
/* @__PURE__ */ l.jsx(
|
|
279
|
-
|
|
282
|
+
E,
|
|
280
283
|
{
|
|
281
284
|
endAdornment: /* @__PURE__ */ l.jsx(
|
|
282
|
-
|
|
285
|
+
J,
|
|
283
286
|
{
|
|
284
287
|
fontSize: "small",
|
|
285
288
|
sx: { color: "var(--s-palette-action-active)", position: "absolute", right: "7px" }
|
|
286
289
|
}
|
|
287
290
|
),
|
|
288
|
-
onClick:
|
|
289
|
-
ref:
|
|
291
|
+
onClick: n.handleOpen,
|
|
292
|
+
ref: (s) => {
|
|
293
|
+
n.anchorRef.current = s, i.current = s;
|
|
294
|
+
},
|
|
290
295
|
value: e,
|
|
291
296
|
sx: {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
borderColor: y[200],
|
|
295
|
-
backgroundColor: "var(--s-palette-background-paper)",
|
|
296
|
-
boxShadow: "inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)",
|
|
297
|
-
"&:hover": {
|
|
298
|
-
borderColor: y[300],
|
|
299
|
-
backgroundColor: "var(--s-palette-background-paper)",
|
|
300
|
-
boxShadow: "none"
|
|
301
|
-
},
|
|
302
|
-
[`&.${E.focused}`]: {
|
|
303
|
-
outlineOffset: 0,
|
|
304
|
-
borderColor: y[400]
|
|
305
|
-
},
|
|
306
|
-
"&:before, &:after": {
|
|
307
|
-
display: "none"
|
|
297
|
+
input: {
|
|
298
|
+
color: "var(--s-palette-text-secondary)"
|
|
308
299
|
}
|
|
309
300
|
}
|
|
310
301
|
}
|
|
311
302
|
),
|
|
312
303
|
/* @__PURE__ */ l.jsx(
|
|
313
|
-
|
|
304
|
+
U,
|
|
314
305
|
{
|
|
315
|
-
anchorEl:
|
|
316
|
-
onClose:
|
|
317
|
-
open:
|
|
318
|
-
slotProps: { paper: { sx: { width:
|
|
306
|
+
anchorEl: n.anchorRef.current,
|
|
307
|
+
onClose: n.handleClose,
|
|
308
|
+
open: n.open,
|
|
309
|
+
slotProps: { paper: { sx: { width: m ? `${m}px` : void 0 } } },
|
|
319
310
|
children: r.map((s) => {
|
|
320
|
-
const
|
|
311
|
+
const p = a.includes(s.value);
|
|
321
312
|
return /* @__PURE__ */ l.jsx(
|
|
322
|
-
|
|
313
|
+
w,
|
|
323
314
|
{
|
|
324
315
|
onClick: () => {
|
|
325
|
-
|
|
316
|
+
y(s.value, !p);
|
|
326
317
|
},
|
|
327
|
-
selected:
|
|
318
|
+
selected: p,
|
|
328
319
|
children: s.label
|
|
329
320
|
},
|
|
330
321
|
s.label
|
|
@@ -333,14 +324,14 @@ function me({
|
|
|
333
324
|
}
|
|
334
325
|
),
|
|
335
326
|
/* @__PURE__ */ l.jsx(
|
|
336
|
-
|
|
327
|
+
B,
|
|
337
328
|
{
|
|
338
329
|
chips: r.filter((s) => a.includes(s.value)).map((s) => s.label),
|
|
339
|
-
...
|
|
330
|
+
...u
|
|
340
331
|
}
|
|
341
332
|
)
|
|
342
333
|
] });
|
|
343
334
|
}
|
|
344
335
|
export {
|
|
345
|
-
|
|
336
|
+
pe as default
|
|
346
337
|
};
|