@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
|
@@ -3,43 +3,42 @@ import * as p from "react";
|
|
|
3
3
|
import { Link as n } from "@tiptap/extension-link";
|
|
4
4
|
import { Placeholder as m } from "@tiptap/extension-placeholder";
|
|
5
5
|
import { useEditor as c, EditorContent as f } from "@tiptap/react";
|
|
6
|
-
import { StarterKit as
|
|
7
|
-
import { STextEditorToolbar as
|
|
8
|
-
import { B as
|
|
9
|
-
const
|
|
10
|
-
content:
|
|
11
|
-
editable:
|
|
6
|
+
import { StarterKit as u } from "@tiptap/starter-kit";
|
|
7
|
+
import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
|
|
8
|
+
import { B as d } from "../Box-BOnkyXg-.js";
|
|
9
|
+
const z = ({
|
|
10
|
+
content: r,
|
|
11
|
+
editable: o = !0,
|
|
12
12
|
hideToolbar: i,
|
|
13
13
|
onUpdate: s = () => {
|
|
14
14
|
},
|
|
15
15
|
placeholder: a
|
|
16
16
|
}) => {
|
|
17
17
|
const l = [
|
|
18
|
-
|
|
18
|
+
u,
|
|
19
19
|
m.configure({ emptyEditorClass: "is-editor-empty", placeholder: a }),
|
|
20
20
|
n.configure({ openOnClick: !1, autolink: !0 })
|
|
21
21
|
], e = c({
|
|
22
22
|
extensions: l,
|
|
23
|
-
content:
|
|
24
|
-
editable:
|
|
23
|
+
content: r,
|
|
24
|
+
editable: o,
|
|
25
25
|
onUpdate: s,
|
|
26
26
|
parseOptions: {
|
|
27
27
|
preserveWhitespace: "full"
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
return p.useEffect(() => {
|
|
31
|
-
e == null || e.commands.setContent(
|
|
32
|
-
}, [
|
|
33
|
-
|
|
31
|
+
e == null || e.commands.setContent(r, !1, { preserveWhitespace: "full" });
|
|
32
|
+
}, [r]), /* @__PURE__ */ t.jsxs(
|
|
33
|
+
d,
|
|
34
34
|
{
|
|
35
35
|
className: "tiptap-root",
|
|
36
36
|
sx: {
|
|
37
37
|
display: "flex",
|
|
38
38
|
flexDirection: "column",
|
|
39
|
-
...
|
|
39
|
+
...o && {
|
|
40
40
|
border: "1px solid var(--s-palette-divider)",
|
|
41
|
-
borderRadius: 1
|
|
42
|
-
boxShadow: "var(--s-shadows-1)"
|
|
41
|
+
borderRadius: 1
|
|
43
42
|
},
|
|
44
43
|
"& .tiptap-container": {
|
|
45
44
|
display: "flex",
|
|
@@ -69,12 +68,12 @@ const S = ({
|
|
|
69
68
|
}
|
|
70
69
|
},
|
|
71
70
|
children: [
|
|
72
|
-
i ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(
|
|
71
|
+
i ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(x, { editor: e }),
|
|
73
72
|
/* @__PURE__ */ t.jsx(f, { className: "tiptap-container", editor: e })
|
|
74
73
|
]
|
|
75
74
|
}
|
|
76
75
|
);
|
|
77
76
|
};
|
|
78
77
|
export {
|
|
79
|
-
|
|
78
|
+
z as default
|
|
80
79
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import { gray as r, brand as
|
|
5
|
-
import { g as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const c = d(/* @__PURE__ */ s.jsx("path", {
|
|
1
|
+
import { j as e } from "../../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { c as l } from "../../createSvgIcon-FIMSBrG5.js";
|
|
4
|
+
import { gray as r, brand as s } from "../theme-primitives.js";
|
|
5
|
+
import { g as n } from "../../generateUtilityClasses-CvAVhM6T.js";
|
|
6
|
+
import { a as d } from "../../createTheme-CyFSna1a.js";
|
|
7
|
+
const p = l(/* @__PURE__ */ e.jsx("path", {
|
|
9
8
|
d: "m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 3.7a.996.996 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0zm0 12.34-2.46-2.46a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
10
|
-
}), "UnfoldMoreRounded"), t =
|
|
9
|
+
}), "UnfoldMoreRounded"), t = n("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), g = {
|
|
11
10
|
MuiMenu: {
|
|
12
11
|
styleOverrides: {
|
|
13
12
|
list: {
|
|
@@ -15,6 +14,17 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
|
|
|
15
14
|
paddingTop: 8,
|
|
16
15
|
paddingBottom: 8
|
|
17
16
|
}
|
|
17
|
+
},
|
|
18
|
+
defaultProps: {
|
|
19
|
+
anchorOrigin: {
|
|
20
|
+
vertical: "bottom",
|
|
21
|
+
horizontal: "center"
|
|
22
|
+
},
|
|
23
|
+
transformOrigin: {
|
|
24
|
+
vertical: "top",
|
|
25
|
+
horizontal: "center"
|
|
26
|
+
},
|
|
27
|
+
marginThreshold: 0
|
|
18
28
|
}
|
|
19
29
|
},
|
|
20
30
|
MuiMenuItem: {
|
|
@@ -24,64 +34,7 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
|
|
|
24
34
|
},
|
|
25
35
|
MuiSelect: {
|
|
26
36
|
defaultProps: {
|
|
27
|
-
IconComponent:
|
|
28
|
-
MenuProps: {
|
|
29
|
-
anchorOrigin: {
|
|
30
|
-
vertical: "bottom",
|
|
31
|
-
horizontal: "center"
|
|
32
|
-
},
|
|
33
|
-
transformOrigin: {
|
|
34
|
-
vertical: "top",
|
|
35
|
-
horizontal: "center"
|
|
36
|
-
},
|
|
37
|
-
marginThreshold: 0
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
styleOverrides: {
|
|
41
|
-
root: ({ theme: o }) => ({
|
|
42
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
43
|
-
border: "1px solid",
|
|
44
|
-
borderColor: r[200],
|
|
45
|
-
backgroundColor: (o.vars || o).palette.background.paper,
|
|
46
|
-
boxShadow: "inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)",
|
|
47
|
-
"&:hover": {
|
|
48
|
-
borderColor: r[300],
|
|
49
|
-
backgroundColor: (o.vars || o).palette.background.paper,
|
|
50
|
-
boxShadow: "none"
|
|
51
|
-
},
|
|
52
|
-
[`&.${a.focused}`]: {
|
|
53
|
-
outlineOffset: 0,
|
|
54
|
-
borderColor: r[400]
|
|
55
|
-
},
|
|
56
|
-
"&:before, &:after": {
|
|
57
|
-
display: "none"
|
|
58
|
-
},
|
|
59
|
-
...o.applyStyles("dark", {
|
|
60
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
61
|
-
borderColor: r[700],
|
|
62
|
-
backgroundColor: (o.vars || o).palette.background.paper,
|
|
63
|
-
boxShadow: `inset 0 1px 0 1px ${e(r[700], 0.15)}, inset 0 -1px 0 1px hsla(220, 0%, 0%, 0.7)`,
|
|
64
|
-
"&:hover": {
|
|
65
|
-
borderColor: e(r[700], 0.7),
|
|
66
|
-
backgroundColor: (o.vars || o).palette.background.paper,
|
|
67
|
-
boxShadow: "none"
|
|
68
|
-
},
|
|
69
|
-
[`&.${a.focused}`]: {
|
|
70
|
-
outlineOffset: 0,
|
|
71
|
-
borderColor: r[900]
|
|
72
|
-
},
|
|
73
|
-
"&:before, &:after": {
|
|
74
|
-
display: "none"
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
}),
|
|
78
|
-
select: ({ theme: o }) => ({
|
|
79
|
-
...o.applyStyles("dark", {
|
|
80
|
-
"&:focus-visible": {
|
|
81
|
-
backgroundColor: r[900]
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
})
|
|
37
|
+
IconComponent: i.forwardRef((o, a) => /* @__PURE__ */ e.jsx(p, { fontSize: "small", ...o, ref: a }))
|
|
85
38
|
}
|
|
86
39
|
},
|
|
87
40
|
MuiLink: {
|
|
@@ -110,7 +63,7 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
|
|
|
110
63
|
width: 0
|
|
111
64
|
},
|
|
112
65
|
"&:focus-visible": {
|
|
113
|
-
outline: `3px solid ${
|
|
66
|
+
outline: `3px solid ${d(s[500], 0.5)}`,
|
|
114
67
|
outlineOffset: "4px",
|
|
115
68
|
borderRadius: "2px"
|
|
116
69
|
}
|
|
@@ -248,5 +201,5 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
|
|
|
248
201
|
}
|
|
249
202
|
};
|
|
250
203
|
export {
|
|
251
|
-
|
|
204
|
+
g as navigationCustomizations
|
|
252
205
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { g as t } from "./generateUtilityClasses-CvAVhM6T.js";
|
|
2
|
-
import { g as i } from "./createTheme-CyFSna1a.js";
|
|
3
|
-
function n(e) {
|
|
4
|
-
return i("MuiSelect", e);
|
|
5
|
-
}
|
|
6
|
-
const o = t("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
7
|
-
export {
|
|
8
|
-
n as g,
|
|
9
|
-
o as s
|
|
10
|
-
};
|