@solostylist/ui-kit 1.0.25 → 1.0.27
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 +40 -42
- package/dist/s-form/s-form.js +7 -7
- package/dist/s-icon-button/s-icon-button.d.ts +2 -3
- package/dist/s-icon-button/s-icon-button.js +4 -4
- package/dist/s-label/s-label.js +7 -7
- package/dist/s-select/s-select.js +5 -5
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +10 -10
- package/dist/theme/customizations/inputs.js +26 -17
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { Avatar as E, Tooltip as w, IconButton as M, Button as Z } from "@mui/material";
|
|
3
|
-
import t, { forwardRef as
|
|
4
|
-
import { E as
|
|
5
|
-
import { S as
|
|
6
|
-
import { useDropzone as
|
|
3
|
+
import t, { forwardRef as V } from "react";
|
|
4
|
+
import { E as S } from "../SSRBase-BSdFRe_j.js";
|
|
5
|
+
import { S as F } from "../X-B8GTZwii.js";
|
|
6
|
+
import { useDropzone as O } from "react-dropzone";
|
|
7
7
|
import I from "../s-file-icon/s-file-icon.js";
|
|
8
|
-
import
|
|
9
|
-
import { bytesToSize as
|
|
8
|
+
import C from "../s-form/s-form.js";
|
|
9
|
+
import { bytesToSize as H } from "../utils/bytes-to-size.js";
|
|
10
10
|
import { S as n } from "../Stack-CyNMyetl.js";
|
|
11
|
-
import { B as
|
|
12
|
-
import { T as
|
|
13
|
-
const
|
|
11
|
+
import { B as x } from "../Box-CafvePOg.js";
|
|
12
|
+
import { T as s } from "../Typography-BXLku1B0.js";
|
|
13
|
+
const P = /* @__PURE__ */ new Map([
|
|
14
14
|
[
|
|
15
15
|
"bold",
|
|
16
16
|
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M196.49,151.51a12,12,0,0,1-17,17L168,157v51a12,12,0,0,1-24,0V157l-11.51,11.52a12,12,0,1,1-17-17l32-32a12,12,0,0,1,17,0ZM160,36A92.08,92.08,0,0,0,79,84.37,68,68,0,1,0,72,220h28a12,12,0,0,0,0-24H72a44,44,0,0,1-1.81-87.95A91.7,91.7,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,132.6,21.29,12,12,0,1,0,22.8,7.51A92.06,92.06,0,0,0,160,36Z" }))
|
|
@@ -42,15 +42,15 @@ const H = /* @__PURE__ */ new Map([
|
|
|
42
42
|
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M186.83,162.83a4,4,0,0,1-5.66,0L156,137.66V208a4,4,0,0,1-8,0V137.66l-25.17,25.17a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0l32,32A4,4,0,0,1,186.83,162.83ZM160,44A84.09,84.09,0,0,0,83.61,93.13,60,60,0,1,0,72,212h40a4,4,0,0,0,0-8H72a52,52,0,1,1,8.57-103.27A83.45,83.45,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,106.4,69.68,4,4,0,0,0,1.6,7.66,3.92,3.92,0,0,0,1.6-.33A84,84,0,0,0,160,44Z" }))
|
|
43
43
|
]
|
|
44
44
|
]);
|
|
45
|
-
var
|
|
45
|
+
var z = Object.defineProperty, k = Object.defineProperties, D = Object.getOwnPropertyDescriptors, h = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, u = (r, a, l) => a in r ? z(r, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[a] = l, R = (r, a) => {
|
|
46
46
|
for (var l in a || (a = {}))
|
|
47
|
-
B.call(a, l) &&
|
|
48
|
-
if (
|
|
49
|
-
for (var l of
|
|
50
|
-
L.call(a, l) &&
|
|
47
|
+
B.call(a, l) && u(r, l, a[l]);
|
|
48
|
+
if (h)
|
|
49
|
+
for (var l of h(a))
|
|
50
|
+
L.call(a, l) && u(r, l, a[l]);
|
|
51
51
|
return r;
|
|
52
52
|
}, T = (r, a) => k(r, D(a));
|
|
53
|
-
const f =
|
|
53
|
+
const f = V((r, a) => /* @__PURE__ */ t.createElement(S, T(R({ ref: a }, r), { weights: P })));
|
|
54
54
|
f.displayName = "CloudArrowUp";
|
|
55
55
|
const a0 = ({
|
|
56
56
|
caption: r,
|
|
@@ -58,21 +58,21 @@ const a0 = ({
|
|
|
58
58
|
error: l,
|
|
59
59
|
onRemoveAll: g,
|
|
60
60
|
onUpload: U,
|
|
61
|
-
onRemove:
|
|
61
|
+
onRemove: i,
|
|
62
62
|
required: j = !1,
|
|
63
63
|
disabledUpload: _ = !1,
|
|
64
|
-
isShowBtnRemoveAll:
|
|
64
|
+
isShowBtnRemoveAll: b = !1,
|
|
65
65
|
...c
|
|
66
66
|
}) => {
|
|
67
|
-
var
|
|
68
|
-
const { getRootProps: A, getInputProps:
|
|
69
|
-
return /* @__PURE__ */ e.jsxs(
|
|
67
|
+
var d, m;
|
|
68
|
+
const { getRootProps: A, getInputProps: v, isDragActive: p } = O(c);
|
|
69
|
+
return /* @__PURE__ */ e.jsxs(C, { error: l, label: a, required: j, children: [
|
|
70
70
|
/* @__PURE__ */ e.jsx(n, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
|
|
71
|
-
|
|
71
|
+
x,
|
|
72
72
|
{
|
|
73
73
|
sx: {
|
|
74
74
|
alignItems: "center",
|
|
75
|
-
border: "1px dashed var(--
|
|
75
|
+
border: "1px dashed var(--s-palette-divider)",
|
|
76
76
|
borderRadius: 1,
|
|
77
77
|
cursor: "pointer",
|
|
78
78
|
display: "flex",
|
|
@@ -81,46 +81,44 @@ const a0 = ({
|
|
|
81
81
|
outline: "none",
|
|
82
82
|
p: 6,
|
|
83
83
|
...p && {
|
|
84
|
-
bgcolor: "var(--
|
|
84
|
+
bgcolor: "var(--s-palette-action-selected)",
|
|
85
85
|
opacity: 0.5
|
|
86
86
|
},
|
|
87
87
|
"&:hover": {
|
|
88
88
|
...!p && {
|
|
89
|
-
bgcolor: "var(--
|
|
89
|
+
bgcolor: "var(--s-palette-action-hover)"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
...A(),
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */ e.jsx("input", { ...
|
|
95
|
+
/* @__PURE__ */ e.jsx("input", { ...v() }),
|
|
96
96
|
/* @__PURE__ */ e.jsxs(n, { direction: "row", spacing: 2, sx: { alignItems: "center" }, children: [
|
|
97
97
|
/* @__PURE__ */ e.jsx(
|
|
98
98
|
E,
|
|
99
99
|
{
|
|
100
100
|
sx: {
|
|
101
|
-
"--
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
boxShadow: "var(--mui-shadows-8)",
|
|
105
|
-
color: "var(--mui-palette-text-primary)"
|
|
101
|
+
bgcolor: "var(--s-palette-background-paper)",
|
|
102
|
+
boxShadow: "var(--s-shadows-8)",
|
|
103
|
+
color: "var(--s-palette-text-primary)"
|
|
106
104
|
},
|
|
107
105
|
children: /* @__PURE__ */ e.jsx(f, {})
|
|
108
106
|
}
|
|
109
107
|
),
|
|
110
108
|
/* @__PURE__ */ e.jsxs(n, { spacing: 1, children: [
|
|
111
|
-
/* @__PURE__ */ e.jsxs(
|
|
112
|
-
/* @__PURE__ */ e.jsx(
|
|
109
|
+
/* @__PURE__ */ e.jsxs(s, { variant: "h6", children: [
|
|
110
|
+
/* @__PURE__ */ e.jsx(s, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
|
|
113
111
|
" ",
|
|
114
112
|
"or drag and drop your files here"
|
|
115
113
|
] }),
|
|
116
|
-
r ? /* @__PURE__ */ e.jsx(
|
|
114
|
+
r ? /* @__PURE__ */ e.jsx(s, { color: "text.secondary", variant: "body2", children: r }) : null
|
|
117
115
|
] })
|
|
118
116
|
] })
|
|
119
117
|
]
|
|
120
118
|
}
|
|
121
119
|
) }),
|
|
122
|
-
(
|
|
123
|
-
/* @__PURE__ */ e.jsx(n, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (
|
|
120
|
+
(d = c.files) != null && d.length ? /* @__PURE__ */ e.jsxs(n, { mt: 2, spacing: 2, children: [
|
|
121
|
+
/* @__PURE__ */ e.jsx(n, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (m = c.files) == null ? void 0 : m.map((o) => {
|
|
124
122
|
const y = o.name.split(".").pop();
|
|
125
123
|
return /* @__PURE__ */ e.jsxs(
|
|
126
124
|
n,
|
|
@@ -130,24 +128,24 @@ const a0 = ({
|
|
|
130
128
|
spacing: 2,
|
|
131
129
|
sx: {
|
|
132
130
|
alignItems: "center",
|
|
133
|
-
border: "1px solid var(--
|
|
131
|
+
border: "1px solid var(--s-palette-divider)",
|
|
134
132
|
borderRadius: 1,
|
|
135
133
|
flex: "1 1 auto",
|
|
136
134
|
p: 1
|
|
137
135
|
},
|
|
138
136
|
children: [
|
|
139
137
|
/* @__PURE__ */ e.jsx(I, { extension: y }),
|
|
140
|
-
/* @__PURE__ */ e.jsxs(
|
|
141
|
-
/* @__PURE__ */ e.jsx(
|
|
142
|
-
/* @__PURE__ */ e.jsx(
|
|
138
|
+
/* @__PURE__ */ e.jsxs(x, { sx: { flex: "1 1 auto" }, children: [
|
|
139
|
+
/* @__PURE__ */ e.jsx(s, { variant: "subtitle2", children: o.name }),
|
|
140
|
+
/* @__PURE__ */ e.jsx(s, { color: "text.secondary", variant: "body2", children: H(o.size) })
|
|
143
141
|
] }),
|
|
144
142
|
/* @__PURE__ */ e.jsx(w, { title: "Remove", children: /* @__PURE__ */ e.jsx(
|
|
145
143
|
M,
|
|
146
144
|
{
|
|
147
145
|
onClick: () => {
|
|
148
|
-
|
|
146
|
+
i == null || i(o);
|
|
149
147
|
},
|
|
150
|
-
children: /* @__PURE__ */ e.jsx(
|
|
148
|
+
children: /* @__PURE__ */ e.jsx(F, {})
|
|
151
149
|
}
|
|
152
150
|
) })
|
|
153
151
|
]
|
|
@@ -155,7 +153,7 @@ const a0 = ({
|
|
|
155
153
|
o.size
|
|
156
154
|
);
|
|
157
155
|
}) }),
|
|
158
|
-
/* @__PURE__ */ e.jsx(n, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children:
|
|
156
|
+
/* @__PURE__ */ e.jsx(n, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children: b && /* @__PURE__ */ e.jsx(Z, { onClick: g, size: "small", type: "button", variant: "text", children: "Remove all" }) })
|
|
159
157
|
] }) : null
|
|
160
158
|
] });
|
|
161
159
|
};
|
package/dist/s-form/s-form.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { FormControl as
|
|
1
|
+
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { FormControl as m, FormLabel as c, Tooltip as i, FormHelperText as p } from "@mui/material";
|
|
3
3
|
import { c as x } from "../createSvgIcon-C9keHw6o.js";
|
|
4
|
-
const a = x(/* @__PURE__ */
|
|
4
|
+
const a = x(/* @__PURE__ */ e.jsx("path", {
|
|
5
5
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"
|
|
6
|
-
}), "Help"), u = ({ label: t, hint: s, error:
|
|
7
|
-
t ? /* @__PURE__ */
|
|
6
|
+
}), "Help"), u = ({ label: t, hint: s, error: l, required: o, children: r, htmlFor: n }) => /* @__PURE__ */ e.jsxs(m, { error: !!l, fullWidth: !0, children: [
|
|
7
|
+
t ? /* @__PURE__ */ e.jsxs(c, { htmlFor: n, required: o, sx: { display: "flex", alignItems: "center" }, children: [
|
|
8
8
|
t,
|
|
9
9
|
" ",
|
|
10
|
-
s ? /* @__PURE__ */
|
|
10
|
+
s ? /* @__PURE__ */ e.jsx(i, { title: s, placement: "top", sx: { marginLeft: 0.5 }, children: /* @__PURE__ */ e.jsx(a, { style: { width: 16 } }) }) : null
|
|
11
11
|
] }) : null,
|
|
12
12
|
r,
|
|
13
|
-
|
|
13
|
+
l ? /* @__PURE__ */ e.jsx(p, { children: l }) : null
|
|
14
14
|
] });
|
|
15
15
|
export {
|
|
16
16
|
u as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconButtonProps, TooltipProps } from '@mui/material';
|
|
3
3
|
export interface SIconButtonProps extends IconButtonProps {
|
|
4
|
-
|
|
5
|
-
tooltipOptions: TooltipProps;
|
|
4
|
+
tooltipOptions?: Omit<TooltipProps, 'children'>;
|
|
6
5
|
}
|
|
7
|
-
declare const SIconButton: ({
|
|
6
|
+
declare const SIconButton: ({ tooltipOptions, ...props }: SIconButtonProps) => React.JSX.Element;
|
|
8
7
|
export default SIconButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { Tooltip as s, IconButton as n } from "@mui/material";
|
|
3
|
+
const j = ({ tooltipOptions: o, ...r }) => o ? /* @__PURE__ */ t.jsx(s, { ...o, children: /* @__PURE__ */ t.jsx(n, { ...r }) }) : /* @__PURE__ */ t.jsx(n, { ...r });
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
j as default
|
|
6
6
|
};
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { Stack as i, Tooltip as
|
|
2
|
+
import { Stack as i, Tooltip as r } from "@mui/material";
|
|
3
3
|
import { c } from "../createSvgIcon-C9keHw6o.js";
|
|
4
|
-
const
|
|
4
|
+
const a = c(/* @__PURE__ */ e.jsx("path", {
|
|
5
5
|
d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
|
|
6
|
-
}), "HelpOutline"), d = ({ label: l, content:
|
|
6
|
+
}), "HelpOutline"), d = ({ label: l, content: s, children: n, hint: t, sx: o }) => /* @__PURE__ */ e.jsxs(i, { width: "100%", sx: o, children: [
|
|
7
7
|
/* @__PURE__ */ e.jsxs(i, { direction: "row", gap: 1, alignItems: "center", children: [
|
|
8
8
|
/* @__PURE__ */ e.jsx("div", { style: { fontSize: "1rem", fontWeight: 500, lineHeight: 1.57 }, children: l }),
|
|
9
|
-
t ? /* @__PURE__ */ e.jsx(
|
|
9
|
+
t ? /* @__PURE__ */ e.jsx(r, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(a, { fontSize: "small" }) }) : null
|
|
10
10
|
] }),
|
|
11
11
|
/* @__PURE__ */ e.jsx(
|
|
12
12
|
"div",
|
|
@@ -15,12 +15,12 @@ const m = c(/* @__PURE__ */ e.jsx("path", {
|
|
|
15
15
|
fontSize: "0.875rem",
|
|
16
16
|
fontWeight: 400,
|
|
17
17
|
lineHeight: 1.57,
|
|
18
|
-
color: "var(--
|
|
18
|
+
color: "var(--s-palette-text-secondary)"
|
|
19
19
|
},
|
|
20
|
-
children:
|
|
20
|
+
children: s
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
|
-
|
|
23
|
+
n
|
|
24
24
|
] });
|
|
25
25
|
export {
|
|
26
26
|
d as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as u } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as b, useState as m, 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 = b(
|
|
6
6
|
({
|
|
7
7
|
options: t = [],
|
|
8
8
|
optionLabel: c = "name",
|
|
@@ -16,7 +16,7 @@ const M = m(
|
|
|
16
16
|
htmlFor: o,
|
|
17
17
|
...n
|
|
18
18
|
}, j) => {
|
|
19
|
-
const [p, S] =
|
|
19
|
+
const [p, S] = m(n.value ?? null);
|
|
20
20
|
V(() => {
|
|
21
21
|
S(n.value ?? null);
|
|
22
22
|
}, [n.value]);
|
|
@@ -31,14 +31,14 @@ const M = m(
|
|
|
31
31
|
ref: j,
|
|
32
32
|
renderValue: n.multiple ? (e) => {
|
|
33
33
|
const r = e;
|
|
34
|
-
return r.length === 0 ? /* @__PURE__ */ u.jsx("span", { style: { color: "var(--
|
|
34
|
+
return r.length === 0 ? /* @__PURE__ */ u.jsx("span", { style: { color: "var(--s-palette-text-secondary)" }, children: d }) : r.map((f) => {
|
|
35
35
|
const s = t.find((h) => l(h) === l(f));
|
|
36
36
|
return s ? a(s) : "";
|
|
37
37
|
}).filter(Boolean).join(", ");
|
|
38
38
|
} : (e) => {
|
|
39
39
|
const r = e;
|
|
40
40
|
if (r == null || r === "")
|
|
41
|
-
return /* @__PURE__ */ u.jsx("span", { style: { color: "var(--
|
|
41
|
+
return /* @__PURE__ */ u.jsx("span", { style: { color: "var(--s-palette-text-secondary)" }, children: d });
|
|
42
42
|
if (g)
|
|
43
43
|
return a(r);
|
|
44
44
|
const f = t.find((s) => l(s) === l(r));
|
|
@@ -4633,7 +4633,7 @@ const ya = ({ editor: e }) => {
|
|
|
4633
4633
|
className: "tiptap-toolbar",
|
|
4634
4634
|
spacing: 1,
|
|
4635
4635
|
sx: {
|
|
4636
|
-
borderBottom: "1px solid var(--
|
|
4636
|
+
borderBottom: "1px solid var(--s-palette-divider)",
|
|
4637
4637
|
p: "8px",
|
|
4638
4638
|
minHeight: "57px"
|
|
4639
4639
|
},
|
|
@@ -3,9 +3,9 @@ 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
|
|
6
|
+
import { StarterKit as x } from "@tiptap/starter-kit";
|
|
7
|
+
import { STextEditorToolbar as d } from "./s-text-editor-toolbar.js";
|
|
8
|
+
import { B as u } from "../Box-CafvePOg.js";
|
|
9
9
|
const S = ({
|
|
10
10
|
content: o,
|
|
11
11
|
editable: r = !0,
|
|
@@ -15,7 +15,7 @@ const S = ({
|
|
|
15
15
|
placeholder: a
|
|
16
16
|
}) => {
|
|
17
17
|
const l = [
|
|
18
|
-
|
|
18
|
+
x,
|
|
19
19
|
m.configure({ emptyEditorClass: "is-editor-empty", placeholder: a }),
|
|
20
20
|
n.configure({ openOnClick: !1, autolink: !0 })
|
|
21
21
|
], e = c({
|
|
@@ -30,16 +30,16 @@ const S = ({
|
|
|
30
30
|
return p.useEffect(() => {
|
|
31
31
|
e == null || e.commands.setContent(o, !1, { preserveWhitespace: "full" });
|
|
32
32
|
}, [o]), /* @__PURE__ */ t.jsxs(
|
|
33
|
-
|
|
33
|
+
u,
|
|
34
34
|
{
|
|
35
35
|
className: "tiptap-root",
|
|
36
36
|
sx: {
|
|
37
37
|
display: "flex",
|
|
38
38
|
flexDirection: "column",
|
|
39
39
|
...r && {
|
|
40
|
-
border: "1px solid var(--
|
|
40
|
+
border: "1px solid var(--s-palette-divider)",
|
|
41
41
|
borderRadius: 1,
|
|
42
|
-
boxShadow: "var(--
|
|
42
|
+
boxShadow: "var(--s-shadows-1)"
|
|
43
43
|
},
|
|
44
44
|
"& .tiptap-container": {
|
|
45
45
|
display: "flex",
|
|
@@ -49,7 +49,7 @@ const S = ({
|
|
|
49
49
|
height: "12rem"
|
|
50
50
|
},
|
|
51
51
|
"& .tiptap": {
|
|
52
|
-
color: "var(--
|
|
52
|
+
color: "var(--s-palette-text-primary)",
|
|
53
53
|
flex: "1 1 auto",
|
|
54
54
|
overflow: "auto",
|
|
55
55
|
fontSize: "0.875rem",
|
|
@@ -60,7 +60,7 @@ const S = ({
|
|
|
60
60
|
"& table": { cursor: "col-resize" }
|
|
61
61
|
},
|
|
62
62
|
"& .is-editor-empty:before": {
|
|
63
|
-
color: "var(--
|
|
63
|
+
color: "var(--s-palette-text-secondary)",
|
|
64
64
|
content: "attr(data-placeholder)",
|
|
65
65
|
float: "left",
|
|
66
66
|
height: 0,
|
|
@@ -69,7 +69,7 @@ const S = ({
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
children: [
|
|
72
|
-
i ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(
|
|
72
|
+
i ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(d, { editor: e }),
|
|
73
73
|
/* @__PURE__ */ t.jsx(f, { className: "tiptap-container", editor: e })
|
|
74
74
|
]
|
|
75
75
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
1
|
+
import { j as t } from "../../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as l } from "../../createSvgIcon-C9keHw6o.js";
|
|
3
3
|
import { brand as e, gray as o } from "../theme-primitives.js";
|
|
4
4
|
import { o as i } from "../../outlinedInputClasses-BiB8MrLY.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { s
|
|
5
|
+
import { g as n } from "../../generateUtilityClasses-BHlV34bM.js";
|
|
6
|
+
import { s } from "../../svgIconClasses-B4eDa4bG.js";
|
|
7
7
|
import { a } from "../../createTheme-DwCHEbMU.js";
|
|
8
|
-
const
|
|
8
|
+
const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
9
9
|
d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
10
|
-
}), "CheckBoxOutlineBlankRounded"),
|
|
10
|
+
}), "CheckBoxOutlineBlankRounded"), c = l(/* @__PURE__ */ t.jsx("path", {
|
|
11
11
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
12
|
-
}), "CheckRounded"), u =
|
|
12
|
+
}), "CheckRounded"), u = l(/* @__PURE__ */ t.jsx("path", {
|
|
13
13
|
d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"
|
|
14
|
-
}), "RemoveRounded"), b =
|
|
14
|
+
}), "RemoveRounded"), b = n("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = n("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), m = {
|
|
15
15
|
MuiButtonBase: {
|
|
16
16
|
defaultProps: {
|
|
17
17
|
disableTouchRipple: !0,
|
|
@@ -226,12 +226,12 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
226
226
|
styleOverrides: {
|
|
227
227
|
root: ({ theme: r }) => ({
|
|
228
228
|
boxShadow: "none",
|
|
229
|
-
borderRadius: (
|
|
229
|
+
// borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
230
230
|
textTransform: "none",
|
|
231
231
|
fontWeight: r.typography.fontWeightMedium,
|
|
232
232
|
letterSpacing: 0,
|
|
233
233
|
color: (r.vars || r).palette.text.primary,
|
|
234
|
-
border:
|
|
234
|
+
// border: '1px solid ',
|
|
235
235
|
borderColor: o[200],
|
|
236
236
|
backgroundColor: a(o[50], 0.3),
|
|
237
237
|
"&:hover": {
|
|
@@ -261,7 +261,7 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
261
261
|
width: "2.25rem",
|
|
262
262
|
height: "2.25rem",
|
|
263
263
|
padding: "0.25rem",
|
|
264
|
-
[`& .${
|
|
264
|
+
[`& .${s.root}`]: { fontSize: "1rem" }
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
{
|
|
@@ -314,9 +314,9 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
314
314
|
MuiCheckbox: {
|
|
315
315
|
defaultProps: {
|
|
316
316
|
disableRipple: !0,
|
|
317
|
-
icon: /* @__PURE__ */
|
|
318
|
-
checkedIcon: /* @__PURE__ */
|
|
319
|
-
indeterminateIcon: /* @__PURE__ */
|
|
317
|
+
icon: /* @__PURE__ */ t.jsx(p, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
318
|
+
checkedIcon: /* @__PURE__ */ t.jsx(c, { sx: { height: 14, width: 14 } }),
|
|
319
|
+
indeterminateIcon: /* @__PURE__ */ t.jsx(u, { sx: { height: 14, width: 14 } })
|
|
320
320
|
},
|
|
321
321
|
styleOverrides: {
|
|
322
322
|
root: ({ theme: r }) => ({
|
|
@@ -377,9 +377,18 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
377
377
|
},
|
|
378
378
|
MuiOutlinedInput: {
|
|
379
379
|
styleOverrides: {
|
|
380
|
-
input: {
|
|
381
|
-
padding: 0
|
|
382
|
-
|
|
380
|
+
input: ({ ownerState: r }) => ({
|
|
381
|
+
padding: 0,
|
|
382
|
+
...r.type === "number" && {
|
|
383
|
+
// Remove spinner buttons (cross-browser)
|
|
384
|
+
"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
|
|
385
|
+
WebkitAppearance: "none",
|
|
386
|
+
margin: 0
|
|
387
|
+
},
|
|
388
|
+
MozAppearance: "textfield"
|
|
389
|
+
// Firefox
|
|
390
|
+
}
|
|
391
|
+
}),
|
|
383
392
|
root: ({ theme: r }) => ({
|
|
384
393
|
padding: "8px 12px",
|
|
385
394
|
color: (r.vars || r).palette.text.primary,
|