@solostylist/ui-kit 1.0.83 → 1.0.84
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-chips/s-chips.js +5 -3
- package/dist/s-copyable-text/s-copyable-text.js +13 -19
- package/dist/s-dialog-confirm/s-dialog-confirm.js +18 -18
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +5 -5
- package/dist/s-file-dropzone/s-file-dropzone.js +44 -45
- package/dist/s-interactive-gallery/s-interactive-gallery.js +96 -94
- package/dist/s-lazy-image/s-lazy-image.js +42 -36
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +19 -19
- package/dist/s-text-truncation/s-text-truncation.js +7 -7
- package/dist/theme/components/alert.d.ts +56 -0
- package/dist/theme/components/alert.js +53 -0
- package/dist/theme/components/button.d.ts +3 -0
- package/dist/theme/components/button.js +24 -21
- package/dist/theme/components/components.d.ts +73 -0
- package/dist/theme/components/components.js +26 -22
- package/dist/theme/components/tooltip.d.ts +14 -0
- package/dist/theme/components/tooltip.js +17 -0
- package/dist/theme/customizations/feedback.js +12 -30
- package/dist/theme/customizations/navigation.js +5 -6
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { j as c } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as i } from "../createSvgIcon-9XY7lJan.js";
|
|
4
4
|
import { MenuItem as u } from "@mui/material";
|
|
5
|
-
import { usePopover as
|
|
5
|
+
import { usePopover as p } from "../hooks/use-popover.js";
|
|
6
6
|
import m from "../s-text-field/s-text-field.js";
|
|
7
7
|
import { I as f, S as x, F as d } from "../Select-CT0Hpudx.js";
|
|
8
8
|
import { S as v } from "../Stack-W0weBtf9.js";
|
|
9
9
|
import { P as j } from "../Menu-DbldWmqB.js";
|
|
10
|
-
const k =
|
|
10
|
+
const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
11
11
|
d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
|
|
12
|
-
}), "Code"), H =
|
|
12
|
+
}), "Code"), H = i(/* @__PURE__ */ c.jsx("path", {
|
|
13
13
|
d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"
|
|
14
|
-
}), "FormatBold"), L =
|
|
14
|
+
}), "FormatBold"), L = i(/* @__PURE__ */ c.jsx("path", {
|
|
15
15
|
d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
|
|
16
|
-
}), "FormatItalic"), b =
|
|
16
|
+
}), "FormatItalic"), b = i(/* @__PURE__ */ c.jsx("path", {
|
|
17
17
|
d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"
|
|
18
|
-
}), "FormatListBulleted"), C =
|
|
18
|
+
}), "FormatListBulleted"), C = i(/* @__PURE__ */ c.jsx("path", {
|
|
19
19
|
d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"
|
|
20
|
-
}), "FormatListNumbered"),
|
|
20
|
+
}), "FormatListNumbered"), g = i(/* @__PURE__ */ c.jsx("path", {
|
|
21
21
|
d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"
|
|
22
|
-
}), "Link"), I =
|
|
22
|
+
}), "Link"), I = i(/* @__PURE__ */ c.jsx("path", {
|
|
23
23
|
d: "M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"
|
|
24
24
|
}), "StrikethroughS"), N = ({ editor: n }) => {
|
|
25
|
-
const e =
|
|
25
|
+
const e = p(), [o, t] = r.useState("");
|
|
26
26
|
return /* @__PURE__ */ c.jsxs(r.Fragment, { children: [
|
|
27
27
|
/* @__PURE__ */ c.jsx(
|
|
28
28
|
v,
|
|
@@ -139,10 +139,10 @@ const k = t(/* @__PURE__ */ c.jsx("path", {
|
|
|
139
139
|
a,
|
|
140
140
|
{
|
|
141
141
|
onClick: () => {
|
|
142
|
-
|
|
142
|
+
t(n.getAttributes("link").href ?? ""), e.handleOpen();
|
|
143
143
|
},
|
|
144
144
|
ref: e.anchorRef,
|
|
145
|
-
children: /* @__PURE__ */ c.jsx(
|
|
145
|
+
children: /* @__PURE__ */ c.jsx(g, {})
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
148
|
/* @__PURE__ */ c.jsx(
|
|
@@ -153,7 +153,7 @@ const k = t(/* @__PURE__ */ c.jsx("path", {
|
|
|
153
153
|
onClick: () => {
|
|
154
154
|
n.chain().focus().unsetLink().run();
|
|
155
155
|
},
|
|
156
|
-
children: /* @__PURE__ */ c.jsx(
|
|
156
|
+
children: /* @__PURE__ */ c.jsx(g, {})
|
|
157
157
|
}
|
|
158
158
|
)
|
|
159
159
|
] }) : null
|
|
@@ -165,7 +165,7 @@ const k = t(/* @__PURE__ */ c.jsx("path", {
|
|
|
165
165
|
anchorEl: e.anchorRef.current,
|
|
166
166
|
anchorOrigin: { horizontal: "left", vertical: "bottom" },
|
|
167
167
|
onClose: () => {
|
|
168
|
-
e.handleClose(),
|
|
168
|
+
e.handleClose(), t("");
|
|
169
169
|
},
|
|
170
170
|
open: e.open,
|
|
171
171
|
slotProps: { paper: { sx: { p: 2 } } },
|
|
@@ -173,9 +173,9 @@ const k = t(/* @__PURE__ */ c.jsx("path", {
|
|
|
173
173
|
m,
|
|
174
174
|
{
|
|
175
175
|
name: "url",
|
|
176
|
-
|
|
176
|
+
label: "URL",
|
|
177
177
|
onChange: (s) => {
|
|
178
|
-
|
|
178
|
+
t(s.target.value);
|
|
179
179
|
},
|
|
180
180
|
onKeyUp: (s) => {
|
|
181
181
|
if (s.key === "Enter") {
|
|
@@ -183,7 +183,7 @@ const k = t(/* @__PURE__ */ c.jsx("path", {
|
|
|
183
183
|
n == null || n.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
n == null || n.chain().focus().setLink({ href: o }).run(), e.handleClose(),
|
|
186
|
+
n == null || n.chain().focus().setLink({ href: o }).run(), e.handleClose(), t("");
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
value: o
|
|
@@ -196,8 +196,8 @@ const k = t(/* @__PURE__ */ c.jsx("path", {
|
|
|
196
196
|
function z(n) {
|
|
197
197
|
return n.isActive("paragraph") ? "p" : n.isActive("heading", { level: 1 }) ? "h1" : n.isActive("heading", { level: 2 }) ? "h2" : n.isActive("heading", { level: 3 }) ? "h3" : n.isActive("heading", { level: 4 }) ? "h4" : n.isActive("heading", { level: 5 }) ? "h5" : n.isActive("heading", { level: 6 }) ? "h6" : "p";
|
|
198
198
|
}
|
|
199
|
-
const a = r.forwardRef(function({ active: e, children: o, disabled:
|
|
200
|
-
return /* @__PURE__ */ c.jsx(f, { color: e ? "primary" : "
|
|
199
|
+
const a = r.forwardRef(function({ active: e, children: o, disabled: t, onClick: s }, l) {
|
|
200
|
+
return /* @__PURE__ */ c.jsx(f, { color: e ? "primary" : "inherit", disabled: t, onClick: s, ref: l, children: o });
|
|
201
201
|
});
|
|
202
202
|
export {
|
|
203
203
|
N as STextEditorToolbar
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { useState as a } from "react";
|
|
2
|
+
import { useState as a, Fragment as t } from "react";
|
|
3
3
|
import { Typography as i, Link as l } from "@mui/material";
|
|
4
|
-
import '../assets/s-text-truncation.css';const d = ({ text:
|
|
5
|
-
const [
|
|
6
|
-
n(!
|
|
4
|
+
import '../assets/s-text-truncation.css';const d = ({ text: e }) => {
|
|
5
|
+
const [s, n] = a(!1), o = () => {
|
|
6
|
+
n(!s);
|
|
7
7
|
};
|
|
8
|
-
return /* @__PURE__ */ r.jsxs(
|
|
9
|
-
/* @__PURE__ */ r.jsx(i, { className:
|
|
10
|
-
|
|
8
|
+
return /* @__PURE__ */ r.jsxs(t, { children: [
|
|
9
|
+
/* @__PURE__ */ r.jsx(i, { className: s ? "full-text" : "truncated-text", variant: "body2", children: e }),
|
|
10
|
+
e && (e == null ? void 0 : e.split(" ").length) > 20 ? /* @__PURE__ */ r.jsx(l, { className: "see-more", onClick: o, sx: { cursor: "pointer", fontSize: "0.875rem" }, children: s ? "See less" : "See more" }) : null
|
|
11
11
|
] });
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const MuiAlert: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: () => {
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
variants: ({
|
|
6
|
+
props: {
|
|
7
|
+
severity: "success";
|
|
8
|
+
};
|
|
9
|
+
style: {
|
|
10
|
+
color: string;
|
|
11
|
+
'& .MuiAlert-icon': {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
border: string;
|
|
16
|
+
};
|
|
17
|
+
} | {
|
|
18
|
+
props: {
|
|
19
|
+
severity: "error";
|
|
20
|
+
};
|
|
21
|
+
style: {
|
|
22
|
+
color: string;
|
|
23
|
+
'& .MuiAlert-icon': {
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
border: string;
|
|
28
|
+
};
|
|
29
|
+
} | {
|
|
30
|
+
props: {
|
|
31
|
+
severity: "warning";
|
|
32
|
+
};
|
|
33
|
+
style: {
|
|
34
|
+
color: string;
|
|
35
|
+
'& .MuiAlert-icon': {
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
border: string;
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
props: {
|
|
43
|
+
severity: "info";
|
|
44
|
+
};
|
|
45
|
+
style: {
|
|
46
|
+
color: string;
|
|
47
|
+
'& .MuiAlert-icon': {
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
border: string;
|
|
52
|
+
};
|
|
53
|
+
})[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { alpha as s } from "@mui/material";
|
|
2
|
+
import { green as o, red as i, orange as t, blue as p } from "../theme-primitives.js";
|
|
3
|
+
const e = (r) => ({
|
|
4
|
+
color: r[50],
|
|
5
|
+
"& .MuiAlert-icon": {
|
|
6
|
+
color: r[500]
|
|
7
|
+
},
|
|
8
|
+
backgroundColor: `${s(r[900], 0.5)}`,
|
|
9
|
+
border: `1px solid ${s(r[800], 0.5)}`
|
|
10
|
+
}), l = {
|
|
11
|
+
styleOverrides: {
|
|
12
|
+
root: () => ({
|
|
13
|
+
borderRadius: 10,
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
props: {
|
|
17
|
+
severity: "success"
|
|
18
|
+
},
|
|
19
|
+
style: {
|
|
20
|
+
...e(o)
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
props: {
|
|
25
|
+
severity: "error"
|
|
26
|
+
},
|
|
27
|
+
style: {
|
|
28
|
+
...e(i)
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
props: {
|
|
33
|
+
severity: "warning"
|
|
34
|
+
},
|
|
35
|
+
style: {
|
|
36
|
+
...e(t)
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
props: {
|
|
41
|
+
severity: "info"
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
...e(p)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
l as MuiAlert
|
|
53
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
2
|
export declare const MuiButton: {
|
|
3
|
+
defaultProps: {
|
|
4
|
+
variant: "contained";
|
|
5
|
+
};
|
|
3
6
|
styleOverrides: {
|
|
4
7
|
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "className" | "style" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "color" | "size" | "disabled" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loading" | "loadingIndicator" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & {
|
|
5
8
|
component?: React.ElementType;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { gray as d, brand as
|
|
2
|
-
const
|
|
3
|
-
backgroundColor:
|
|
4
|
-
color: l(r.variant,
|
|
5
|
-
borderColor: r.variant === "outlined" ?
|
|
1
|
+
import { gray as d, brand as n, purple as p, green as u, red as t, blue as v, orange as b } from "../theme-primitives.js";
|
|
2
|
+
const i = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o, r, a) => o === "text" || o === "outlined" ? a : r, s = (o, r, a) => o.applyStyles("dark", {
|
|
3
|
+
backgroundColor: i(r.variant, a[800]),
|
|
4
|
+
color: l(r.variant, a[50], a[500]),
|
|
5
|
+
borderColor: r.variant === "outlined" ? a[900] : "transparent",
|
|
6
6
|
"&:hover": {
|
|
7
|
-
backgroundColor:
|
|
8
|
-
color: l(r.variant,
|
|
9
|
-
borderColor: r.variant === "outlined" ?
|
|
7
|
+
backgroundColor: i(r.variant, a[900]),
|
|
8
|
+
color: l(r.variant, a[100], a[400]),
|
|
9
|
+
borderColor: r.variant === "outlined" ? a[800] : "transparent"
|
|
10
10
|
},
|
|
11
11
|
"&:active": { filter: "brightness(1.1)" },
|
|
12
12
|
"&.Mui-disabled": {
|
|
13
|
-
backgroundColor:
|
|
14
|
-
color:
|
|
15
|
-
borderColor: r.variant === "outlined" ?
|
|
13
|
+
backgroundColor: i(r.variant, a[800]),
|
|
14
|
+
color: a[900],
|
|
15
|
+
borderColor: r.variant === "outlined" ? a[900] : "transparent"
|
|
16
16
|
}
|
|
17
17
|
// '&.MuiButton-loading': {
|
|
18
18
|
// '& .MuiButton-loadingIndicator': {
|
|
@@ -20,6 +20,9 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
20
20
|
// },
|
|
21
21
|
// },
|
|
22
22
|
}), g = {
|
|
23
|
+
defaultProps: {
|
|
24
|
+
variant: "contained"
|
|
25
|
+
},
|
|
23
26
|
styleOverrides: {
|
|
24
27
|
root: ({ theme: o, ownerState: r }) => ({
|
|
25
28
|
boxShadow: "none",
|
|
@@ -60,17 +63,17 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
60
63
|
},
|
|
61
64
|
style: {
|
|
62
65
|
...o.applyStyles("dark", {
|
|
63
|
-
backgroundColor:
|
|
64
|
-
color: l(r.variant,
|
|
66
|
+
backgroundColor: i(r.variant, n[800]),
|
|
67
|
+
color: l(r.variant, n[50], d[200]),
|
|
65
68
|
borderColor: r.variant === "outlined" ? (o.vars || o).palette.divider : "transparent",
|
|
66
69
|
"&:hover": {
|
|
67
|
-
backgroundColor:
|
|
68
|
-
color: l(r.variant,
|
|
70
|
+
backgroundColor: i(r.variant, n[900]),
|
|
71
|
+
color: l(r.variant, n[100], (o.vars || o).palette.text.primary),
|
|
69
72
|
borderColor: r.variant === "outlined" ? d[700] : "transparent"
|
|
70
73
|
},
|
|
71
74
|
"&:active": { filter: "brightness(1.1)" },
|
|
72
75
|
"&.Mui-disabled": {
|
|
73
|
-
backgroundColor:
|
|
76
|
+
backgroundColor: i(r.variant, n[800]),
|
|
74
77
|
color: d[700],
|
|
75
78
|
borderColor: r.variant === "outlined" ? (o.vars || o).palette.divider : "transparent"
|
|
76
79
|
}
|
|
@@ -82,7 +85,7 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
82
85
|
color: "secondary"
|
|
83
86
|
},
|
|
84
87
|
style: {
|
|
85
|
-
...
|
|
88
|
+
...s(o, r, p)
|
|
86
89
|
}
|
|
87
90
|
},
|
|
88
91
|
{
|
|
@@ -90,7 +93,7 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
90
93
|
color: "success"
|
|
91
94
|
},
|
|
92
95
|
style: {
|
|
93
|
-
...
|
|
96
|
+
...s(o, r, u)
|
|
94
97
|
}
|
|
95
98
|
},
|
|
96
99
|
{
|
|
@@ -98,7 +101,7 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
98
101
|
color: "error"
|
|
99
102
|
},
|
|
100
103
|
style: {
|
|
101
|
-
...
|
|
104
|
+
...s(o, r, t)
|
|
102
105
|
}
|
|
103
106
|
},
|
|
104
107
|
{
|
|
@@ -106,7 +109,7 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
106
109
|
color: "info"
|
|
107
110
|
},
|
|
108
111
|
style: {
|
|
109
|
-
...
|
|
112
|
+
...s(o, r, v)
|
|
110
113
|
}
|
|
111
114
|
},
|
|
112
115
|
{
|
|
@@ -114,7 +117,7 @@ const s = (o, r) => o === "text" || o === "outlined" ? "transparent" : r, l = (o
|
|
|
114
117
|
color: "warning"
|
|
115
118
|
},
|
|
116
119
|
style: {
|
|
117
|
-
...
|
|
120
|
+
...s(o, r, b)
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
]
|
|
@@ -184,6 +184,9 @@ export declare const components: {
|
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
186
|
MuiButton: {
|
|
187
|
+
defaultProps: {
|
|
188
|
+
variant: "contained";
|
|
189
|
+
};
|
|
187
190
|
styleOverrides: {
|
|
188
191
|
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "className" | "style" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "color" | "size" | "disabled" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loading" | "loadingIndicator" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & {
|
|
189
192
|
component?: React.ElementType;
|
|
@@ -6016,4 +6019,74 @@ export declare const components: {
|
|
|
6016
6019
|
};
|
|
6017
6020
|
};
|
|
6018
6021
|
};
|
|
6022
|
+
MuiTooltip: {
|
|
6023
|
+
styleOverrides: {
|
|
6024
|
+
tooltip: {
|
|
6025
|
+
backgroundColor: "var(--s-palette-background-default)";
|
|
6026
|
+
border: string;
|
|
6027
|
+
};
|
|
6028
|
+
arrow: {
|
|
6029
|
+
color: "var(--s-palette-background-default)";
|
|
6030
|
+
'&::before': {
|
|
6031
|
+
border: string;
|
|
6032
|
+
};
|
|
6033
|
+
};
|
|
6034
|
+
};
|
|
6035
|
+
};
|
|
6036
|
+
MuiAlert: {
|
|
6037
|
+
styleOverrides: {
|
|
6038
|
+
root: () => {
|
|
6039
|
+
borderRadius: number;
|
|
6040
|
+
variants: ({
|
|
6041
|
+
props: {
|
|
6042
|
+
severity: "success";
|
|
6043
|
+
};
|
|
6044
|
+
style: {
|
|
6045
|
+
color: string;
|
|
6046
|
+
'& .MuiAlert-icon': {
|
|
6047
|
+
color: string;
|
|
6048
|
+
};
|
|
6049
|
+
backgroundColor: string;
|
|
6050
|
+
border: string;
|
|
6051
|
+
};
|
|
6052
|
+
} | {
|
|
6053
|
+
props: {
|
|
6054
|
+
severity: "error";
|
|
6055
|
+
};
|
|
6056
|
+
style: {
|
|
6057
|
+
color: string;
|
|
6058
|
+
'& .MuiAlert-icon': {
|
|
6059
|
+
color: string;
|
|
6060
|
+
};
|
|
6061
|
+
backgroundColor: string;
|
|
6062
|
+
border: string;
|
|
6063
|
+
};
|
|
6064
|
+
} | {
|
|
6065
|
+
props: {
|
|
6066
|
+
severity: "warning";
|
|
6067
|
+
};
|
|
6068
|
+
style: {
|
|
6069
|
+
color: string;
|
|
6070
|
+
'& .MuiAlert-icon': {
|
|
6071
|
+
color: string;
|
|
6072
|
+
};
|
|
6073
|
+
backgroundColor: string;
|
|
6074
|
+
border: string;
|
|
6075
|
+
};
|
|
6076
|
+
} | {
|
|
6077
|
+
props: {
|
|
6078
|
+
severity: "info";
|
|
6079
|
+
};
|
|
6080
|
+
style: {
|
|
6081
|
+
color: string;
|
|
6082
|
+
'& .MuiAlert-icon': {
|
|
6083
|
+
color: string;
|
|
6084
|
+
};
|
|
6085
|
+
backgroundColor: string;
|
|
6086
|
+
border: string;
|
|
6087
|
+
};
|
|
6088
|
+
})[];
|
|
6089
|
+
};
|
|
6090
|
+
};
|
|
6091
|
+
};
|
|
6019
6092
|
};
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { MuiAlert as o } from "./alert.js";
|
|
2
|
+
import { MuiAvatar as r } from "./avatar.js";
|
|
3
|
+
import { MuiBackdrop as i } from "./backdrop.js";
|
|
4
|
+
import { MuiButton as m } from "./button.js";
|
|
5
|
+
import { MuiChip as t } from "./chip.js";
|
|
6
|
+
import { MuiContainer as p } from "./container.js";
|
|
7
|
+
import { MuiFormControl as u } from "./form-control.js";
|
|
8
|
+
import { MuiPopover as f } from "./popover.js";
|
|
9
|
+
import { MuiRating as M } from "./rating.js";
|
|
10
|
+
import { MuiSlider as n } from "./slider.js";
|
|
11
|
+
import { MuiSvgIcon as e } from "./svg-icon.js";
|
|
12
|
+
import { MuiTooltip as a } from "./tooltip.js";
|
|
13
|
+
const x = {
|
|
14
|
+
MuiAvatar: r,
|
|
15
|
+
MuiRating: M,
|
|
16
|
+
MuiSlider: n,
|
|
17
|
+
MuiSvgIcon: e,
|
|
18
|
+
MuiContainer: p,
|
|
19
|
+
MuiBackdrop: i,
|
|
20
|
+
MuiPopover: f,
|
|
21
|
+
MuiFormControl: u,
|
|
22
|
+
MuiChip: t,
|
|
23
|
+
MuiButton: m,
|
|
24
|
+
MuiTooltip: a,
|
|
25
|
+
MuiAlert: o
|
|
22
26
|
};
|
|
23
27
|
export {
|
|
24
|
-
|
|
28
|
+
x as components
|
|
25
29
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const MuiTooltip: {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
tooltip: {
|
|
4
|
+
backgroundColor: "var(--s-palette-background-default)";
|
|
5
|
+
border: string;
|
|
6
|
+
};
|
|
7
|
+
arrow: {
|
|
8
|
+
color: "var(--s-palette-background-default)";
|
|
9
|
+
'&::before': {
|
|
10
|
+
border: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
tooltip: {
|
|
4
|
+
backgroundColor: "var(--s-palette-background-default)",
|
|
5
|
+
border: "1px solid var(--s-palette-divider)"
|
|
6
|
+
},
|
|
7
|
+
arrow: {
|
|
8
|
+
color: "var(--s-palette-background-default)",
|
|
9
|
+
"&::before": {
|
|
10
|
+
border: "1px solid var(--s-palette-divider)"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
r as MuiTooltip
|
|
17
|
+
};
|
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import { gray as
|
|
2
|
-
|
|
3
|
-
const l = {
|
|
4
|
-
MuiAlert: {
|
|
5
|
-
styleOverrides: {
|
|
6
|
-
root: ({ theme: r }) => ({
|
|
7
|
-
borderRadius: 10,
|
|
8
|
-
backgroundColor: o[100],
|
|
9
|
-
color: (r.vars || r).palette.text.primary,
|
|
10
|
-
border: `1px solid ${a(o[300], 0.5)}`,
|
|
11
|
-
"& .MuiAlert-icon": {
|
|
12
|
-
color: o[500]
|
|
13
|
-
},
|
|
14
|
-
...r.applyStyles("dark", {
|
|
15
|
-
backgroundColor: `${a(o[900], 0.5)}`,
|
|
16
|
-
border: `1px solid ${a(o[800], 0.5)}`
|
|
17
|
-
})
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
},
|
|
1
|
+
import { gray as r } from "../theme-primitives.js";
|
|
2
|
+
const i = {
|
|
21
3
|
MuiDialog: {
|
|
22
4
|
styleOverrides: {
|
|
23
|
-
root: ({ theme:
|
|
5
|
+
root: ({ theme: o }) => ({
|
|
24
6
|
"& .MuiDialog-paper": {
|
|
25
7
|
borderRadius: "10px",
|
|
26
8
|
border: "1px solid",
|
|
27
|
-
borderColor: (
|
|
28
|
-
backgroundColor: (
|
|
9
|
+
borderColor: (o.vars || o).palette.divider,
|
|
10
|
+
backgroundColor: (o.vars || o).palette.background.paper,
|
|
29
11
|
backgroundImage: "none",
|
|
30
12
|
boxShadow: "none"
|
|
31
13
|
}
|
|
@@ -34,24 +16,24 @@ const l = {
|
|
|
34
16
|
},
|
|
35
17
|
MuiDialogActions: {
|
|
36
18
|
styleOverrides: {
|
|
37
|
-
root: ({ theme:
|
|
38
|
-
padding: `${
|
|
19
|
+
root: ({ theme: o }) => ({
|
|
20
|
+
padding: `${o.spacing(2)} ${o.spacing(3)}`
|
|
39
21
|
})
|
|
40
22
|
}
|
|
41
23
|
},
|
|
42
24
|
MuiLinearProgress: {
|
|
43
25
|
styleOverrides: {
|
|
44
|
-
root: ({ theme:
|
|
26
|
+
root: ({ theme: o }) => ({
|
|
45
27
|
height: 8,
|
|
46
28
|
borderRadius: 8,
|
|
47
|
-
backgroundColor:
|
|
48
|
-
...
|
|
49
|
-
backgroundColor:
|
|
29
|
+
backgroundColor: r[200],
|
|
30
|
+
...o.applyStyles("dark", {
|
|
31
|
+
backgroundColor: r[800]
|
|
50
32
|
})
|
|
51
33
|
})
|
|
52
34
|
}
|
|
53
35
|
}
|
|
54
36
|
};
|
|
55
37
|
export {
|
|
56
|
-
|
|
38
|
+
i as feedbackCustomizations
|
|
57
39
|
};
|
|
@@ -94,14 +94,13 @@ const n = l(/* @__PURE__ */ t.jsx("path", {
|
|
|
94
94
|
MuiPaginationItem: {
|
|
95
95
|
styleOverrides: {
|
|
96
96
|
root: ({ theme: r }) => ({
|
|
97
|
-
"&.Mui-selected": {
|
|
98
|
-
color: "white",
|
|
99
|
-
backgroundColor: (r.vars || r).palette.grey[900]
|
|
100
|
-
},
|
|
101
97
|
...r.applyStyles("dark", {
|
|
102
98
|
"&.Mui-selected": {
|
|
103
|
-
color:
|
|
104
|
-
backgroundColor: (r.vars || r).palette.grey[50]
|
|
99
|
+
color: (r.vars || r).palette.grey[900],
|
|
100
|
+
backgroundColor: (r.vars || r).palette.grey[50],
|
|
101
|
+
"&:hover": {
|
|
102
|
+
backgroundColor: (r.vars || r).palette.grey[200]
|
|
103
|
+
}
|
|
105
104
|
}
|
|
106
105
|
})
|
|
107
106
|
})
|