@solostylist/ui-kit 1.0.188 → 1.0.190
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-accordion/package.json +5 -5
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +0 -1
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +67 -71
- package/dist/s-autocomplete/package.json +5 -5
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.d.ts +1 -2
- package/dist/s-button-link/package.json +5 -5
- package/dist/s-carousel/package.json +5 -5
- package/dist/s-category-card/package.json +5 -5
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.js +132 -129
- package/dist/s-chat-message/package.json +5 -5
- package/dist/s-chat-message/s-chat-message.js +28 -29
- package/dist/s-checkbox/package.json +5 -5
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.d.ts +1 -2
- package/dist/s-chips/package.json +5 -5
- package/dist/s-chips/s-chips.js +42 -41
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +1 -2
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +67 -69
- package/dist/s-copyable-text/package.json +5 -5
- package/dist/s-countdown/package.json +5 -5
- package/dist/s-data-table/package.json +5 -5
- package/dist/s-data-table/s-data-table.js +157 -157
- package/dist/s-date-picker/package.json +5 -5
- package/dist/s-datetime-picker/package.json +5 -5
- package/dist/s-dialog/package.json +5 -5
- package/dist/s-dialog-confirm/package.json +5 -5
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/package.json +5 -5
- package/dist/s-dialog-message/s-dialog-message.js +3 -3
- package/dist/s-empty/package.json +5 -5
- package/dist/s-error/package.json +5 -5
- package/dist/s-error-layout/package.json +5 -5
- package/dist/s-file-dropzone/package.json +5 -5
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +1 -5
- package/dist/s-file-dropzone/s-file-dropzone.js +17 -19
- package/dist/s-file-icon/package.json +5 -5
- package/dist/s-flex-box/package.json +5 -5
- package/dist/s-flex-box/s-flex-box.d.ts +1 -2
- package/dist/s-form/package.json +5 -5
- package/dist/s-gallery/package.json +5 -5
- package/dist/s-gallery/s-gallery.js +86 -85
- package/dist/s-glow-button/package.json +5 -5
- package/dist/s-gradient-icon/package.json +5 -5
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +23 -24
- package/dist/s-i18n-provider/package.json +5 -5
- package/dist/s-icon-button/package.json +5 -5
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +50 -44
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +128 -128
- package/dist/s-item-not-found/package.json +5 -5
- package/dist/s-label/package.json +5 -5
- package/dist/s-language-switcher/package.json +5 -5
- package/dist/s-language-switcher/s-language-switcher.js +98 -96
- package/dist/s-lazy-image/package.json +5 -5
- package/dist/s-localization-provider/package.json +5 -5
- package/dist/s-moving-border/package.json +5 -5
- package/dist/s-moving-border/s-moving-border.js +73 -73
- package/dist/s-multi-select/package.json +5 -5
- package/dist/s-multi-select/s-multi-select.js +38 -38
- package/dist/s-no-ssr/package.json +5 -5
- package/dist/s-overlay-scrollbar/package.json +5 -5
- package/dist/s-pagination/package.json +5 -5
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +35 -33
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.d.ts +1 -2
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +75 -77
- package/dist/s-scroll-reveal/package.json +6 -6
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-select/package.json +5 -5
- package/dist/s-select/s-select.d.ts +1 -1
- package/dist/s-select/s-select.js +19 -21
- package/dist/s-select-list/package.json +5 -5
- package/dist/s-select-list/s-select-list.d.ts +2 -2
- package/dist/s-skeleton/package.json +5 -5
- package/dist/s-snackbar-message/package.json +5 -5
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/s-spotlight-cursor/package.json +5 -5
- package/dist/s-stripe/package.json +5 -5
- package/dist/s-tabs/package.json +4 -4
- package/dist/s-tabs/s-tab.d.ts +1 -2
- package/dist/s-text-editor/package.json +5 -5
- package/dist/s-text-editor/s-text-editor-toolbar.js +55 -57
- package/dist/s-text-editor/s-text-editor.js +9 -9
- package/dist/s-text-field/package.json +5 -5
- package/dist/s-text-shimmer/package.json +5 -5
- package/dist/s-text-truncation/package.json +5 -5
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-provider/package.json +5 -5
- package/dist/s-theme-switch/package.json +5 -5
- package/dist/s-tip/package.json +5 -5
- package/dist/s-two-pane-layout/package.json +5 -5
- package/dist/s-typewriter-text/package.json +6 -6
- package/dist/s-zoom-image/package.json +5 -5
- package/package.json +8 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvgIconProps, SvgIconTypeMap, SxProps } from '@mui/material';
|
|
2
2
|
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
3
|
/** Type definition for Material-UI icon components with muiName property */
|
|
4
|
-
type IconComponent = OverridableComponent<SvgIconTypeMap<
|
|
4
|
+
type IconComponent = OverridableComponent<SvgIconTypeMap<object, 'svg'>> & {
|
|
5
5
|
muiName: string;
|
|
6
6
|
};
|
|
7
7
|
/** Gradient direction options */
|
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
-
|
|
2
|
+
import { useId as b } from "react";
|
|
3
|
+
const $ = ({
|
|
3
4
|
hovered: x = !1,
|
|
4
5
|
IconComponent: n,
|
|
5
6
|
sx: c,
|
|
6
7
|
strokeWidth: p = 0,
|
|
7
8
|
gradientTheme: m = "blue-cyan",
|
|
8
|
-
customGradient:
|
|
9
|
+
customGradient: o,
|
|
9
10
|
gradientDirection: a = "diagonal",
|
|
10
11
|
animationDuration: y = 300,
|
|
11
|
-
animationEasing:
|
|
12
|
+
animationEasing: u = "ease",
|
|
12
13
|
autoHover: i = !1,
|
|
13
|
-
gradientId:
|
|
14
|
+
gradientId: h,
|
|
14
15
|
alwaysGradient: f = !1,
|
|
15
|
-
fallbackColor:
|
|
16
|
+
fallbackColor: j,
|
|
16
17
|
...d
|
|
17
18
|
}) => {
|
|
18
|
-
|
|
19
|
-
return null;
|
|
20
|
-
const o = u || `gradient-${Math.random().toString(36).substr(2, 9)}`, s = {
|
|
19
|
+
const g = b(), t = h || `gradient-${g}`, s = {
|
|
21
20
|
"blue-cyan": { start: "#1469be", end: "#43ecff" },
|
|
22
21
|
"purple-pink": { start: "#8b5cf6", end: "#ec4899" },
|
|
23
22
|
"orange-red": { start: "#f97316", end: "#ef4444" },
|
|
24
23
|
"green-teal": { start: "#10b981", end: "#06b6d4" },
|
|
25
24
|
"indigo-purple": { start: "#6366f1", end: "#a855f7" },
|
|
26
|
-
custom:
|
|
27
|
-
start:
|
|
28
|
-
end:
|
|
29
|
-
middle:
|
|
30
|
-
middlePos:
|
|
25
|
+
custom: o ? {
|
|
26
|
+
start: o.startColor,
|
|
27
|
+
end: o.endColor,
|
|
28
|
+
middle: o.middleColor,
|
|
29
|
+
middlePos: o.middlePosition || 0.5
|
|
31
30
|
} : { start: "#1469be", end: "#43ecff" }
|
|
32
31
|
}[m], r = {
|
|
33
32
|
horizontal: { x1: "0", y1: "0", x2: "1", y2: "0" },
|
|
34
33
|
vertical: { x1: "0", y1: "0", x2: "0", y2: "1" },
|
|
35
34
|
diagonal: { x1: "0", y1: "0", x2: "1", y2: "1" },
|
|
36
35
|
radial: { x1: "0.5", y1: "0.5", x2: "0.5", y2: "0.5" }
|
|
37
|
-
}[a],
|
|
38
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
39
|
-
/* @__PURE__ */ e.jsx("svg", { width: 0, height: 0, children: a === "radial" ? /* @__PURE__ */ e.jsxs("radialGradient", { id:
|
|
36
|
+
}[a], C = f || x ? `url(#${t})` : j || "var(--s-palette-text-primary)";
|
|
37
|
+
return n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
38
|
+
/* @__PURE__ */ e.jsx("svg", { width: 0, height: 0, children: a === "radial" ? /* @__PURE__ */ e.jsxs("radialGradient", { id: t, cx: "50%", cy: "50%", r: "50%", children: [
|
|
40
39
|
/* @__PURE__ */ e.jsx("stop", { offset: "0%", stopColor: s.start }),
|
|
41
40
|
s.middle && /* @__PURE__ */ e.jsx("stop", { offset: `${(s.middlePos || 0.5) * 100}%`, stopColor: s.middle }),
|
|
42
41
|
/* @__PURE__ */ e.jsx("stop", { offset: "100%", stopColor: s.end })
|
|
43
|
-
] }) : /* @__PURE__ */ e.jsxs("linearGradient", { id:
|
|
42
|
+
] }) : /* @__PURE__ */ e.jsxs("linearGradient", { id: t, x1: r.x1, y1: r.y1, x2: r.x2, y2: r.y2, children: [
|
|
44
43
|
/* @__PURE__ */ e.jsx("stop", { offset: "0%", stopColor: s.start }),
|
|
45
44
|
s.middle && /* @__PURE__ */ e.jsx("stop", { offset: `${(s.middlePos || 0.5) * 100}%`, stopColor: s.middle }),
|
|
46
45
|
/* @__PURE__ */ e.jsx("stop", { offset: "100%", stopColor: s.end })
|
|
@@ -50,13 +49,13 @@ const C = ({
|
|
|
50
49
|
{
|
|
51
50
|
...d,
|
|
52
51
|
sx: {
|
|
53
|
-
fill:
|
|
52
|
+
fill: C,
|
|
54
53
|
strokeWidth: p,
|
|
55
|
-
transition: `fill ${y}ms ${
|
|
54
|
+
transition: `fill ${y}ms ${u}`,
|
|
56
55
|
// Auto hover functionality
|
|
57
56
|
...i && {
|
|
58
57
|
"&:hover": {
|
|
59
|
-
fill: `url(#${
|
|
58
|
+
fill: `url(#${t})`
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
...c
|
|
@@ -72,10 +71,10 @@ const C = ({
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
)
|
|
75
|
-
] });
|
|
74
|
+
] }) : null;
|
|
76
75
|
};
|
|
77
|
-
|
|
76
|
+
$.displayName = "SGradientIcon";
|
|
78
77
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
$ as SGradientIcon,
|
|
79
|
+
$ as default
|
|
81
80
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as o from "react";
|
|
3
3
|
import { C as A } from "../ChevronLeft-BJjuFNNQ.js";
|
|
4
4
|
import { C as z } from "../ChevronRight-5ZX3FodP.js";
|
|
5
|
-
import { Box as
|
|
5
|
+
import { Box as s, IconButton as D } from "@mui/material";
|
|
6
6
|
import E from "../s-lazy-image/s-lazy-image.js";
|
|
7
|
-
const F =
|
|
8
|
-
({ sx:
|
|
9
|
-
const m = Array.isArray(
|
|
7
|
+
const F = o.forwardRef(
|
|
8
|
+
({ sx: C, leftImage: u, rightImage: I, altLeft: d = "Left image", altRight: L = "Right image", initialPosition: S = 50, ...k }, a) => {
|
|
9
|
+
const m = Array.isArray(u) ? u : [u], f = Array.isArray(d) ? d : [d], [l, M] = o.useState(0), [r, P] = o.useState(S), [n, b] = o.useState(!1), p = o.useRef(null), R = m.length > 1, y = (e) => {
|
|
10
10
|
if (!p.current) return;
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
const i = p.current.getBoundingClientRect();
|
|
12
|
+
let x = (e - i.left) / i.width * 100;
|
|
13
|
+
x = Math.max(0, Math.min(100, x)), P(x);
|
|
14
|
+
}, h = o.useCallback(
|
|
15
|
+
(e) => {
|
|
16
|
+
n && y(e.clientX);
|
|
17
|
+
},
|
|
18
|
+
[n]
|
|
19
|
+
), g = o.useCallback(
|
|
20
|
+
(e) => {
|
|
21
|
+
n && y(e.touches[0].clientX);
|
|
22
|
+
},
|
|
23
|
+
[n]
|
|
24
|
+
), w = () => {
|
|
25
|
+
b(!0);
|
|
20
26
|
}, c = () => {
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
return
|
|
24
|
-
document.removeEventListener("mousemove",
|
|
25
|
-
}), [
|
|
26
|
-
|
|
27
|
+
b(!1);
|
|
28
|
+
}, v = r === 0 || r === 100;
|
|
29
|
+
return o.useEffect(() => (n ? (document.addEventListener("mousemove", h), document.addEventListener("touchmove", g), document.addEventListener("mouseup", c), document.addEventListener("touchend", c), document.body.style.cursor = "ew-resize") : document.body.style.cursor = "", () => {
|
|
30
|
+
document.removeEventListener("mousemove", h), document.removeEventListener("touchmove", g), document.removeEventListener("mouseup", c), document.removeEventListener("touchend", c), document.body.style.cursor = "";
|
|
31
|
+
}), [n, h, g]), /* @__PURE__ */ t.jsxs(
|
|
32
|
+
s,
|
|
27
33
|
{
|
|
28
34
|
ref: (e) => {
|
|
29
35
|
p.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
@@ -34,17 +40,17 @@ const F = i.forwardRef(
|
|
|
34
40
|
height: "100%",
|
|
35
41
|
overflow: "hidden",
|
|
36
42
|
userSelect: "none",
|
|
37
|
-
...
|
|
43
|
+
...C
|
|
38
44
|
},
|
|
39
45
|
onMouseDown: w,
|
|
40
46
|
onTouchStart: w,
|
|
41
|
-
...
|
|
47
|
+
...k,
|
|
42
48
|
children: [
|
|
43
49
|
/* @__PURE__ */ t.jsx(
|
|
44
50
|
E,
|
|
45
51
|
{
|
|
46
|
-
src:
|
|
47
|
-
alt:
|
|
52
|
+
src: I,
|
|
53
|
+
alt: L,
|
|
48
54
|
style: {
|
|
49
55
|
position: "absolute",
|
|
50
56
|
inset: 0,
|
|
@@ -57,7 +63,7 @@ const F = i.forwardRef(
|
|
|
57
63
|
}
|
|
58
64
|
),
|
|
59
65
|
/* @__PURE__ */ t.jsx(
|
|
60
|
-
|
|
66
|
+
s,
|
|
61
67
|
{
|
|
62
68
|
sx: {
|
|
63
69
|
position: "absolute",
|
|
@@ -66,13 +72,13 @@ const F = i.forwardRef(
|
|
|
66
72
|
height: "100%",
|
|
67
73
|
overflow: "hidden",
|
|
68
74
|
pointerEvents: "none",
|
|
69
|
-
clipPath: `polygon(0 0, ${
|
|
75
|
+
clipPath: `polygon(0 0, ${r}% 0, ${r}% 100%, 0 100%)`
|
|
70
76
|
},
|
|
71
77
|
children: /* @__PURE__ */ t.jsx(
|
|
72
78
|
E,
|
|
73
79
|
{
|
|
74
80
|
src: m[l],
|
|
75
|
-
alt:
|
|
81
|
+
alt: f[l] || f[0],
|
|
76
82
|
style: {
|
|
77
83
|
width: "100%",
|
|
78
84
|
height: "100%",
|
|
@@ -83,8 +89,8 @@ const F = i.forwardRef(
|
|
|
83
89
|
)
|
|
84
90
|
}
|
|
85
91
|
),
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
R && /* @__PURE__ */ t.jsx(
|
|
93
|
+
s,
|
|
88
94
|
{
|
|
89
95
|
sx: {
|
|
90
96
|
position: "absolute",
|
|
@@ -93,41 +99,41 @@ const F = i.forwardRef(
|
|
|
93
99
|
display: "flex",
|
|
94
100
|
gap: 1,
|
|
95
101
|
zIndex: 1,
|
|
96
|
-
pointerEvents:
|
|
102
|
+
pointerEvents: n ? "none" : "auto",
|
|
97
103
|
// Disable bubble click when dragging
|
|
98
|
-
opacity:
|
|
104
|
+
opacity: r > 10 ? 1 : 0,
|
|
99
105
|
// Fade out if left image is mostly hidden
|
|
100
106
|
transition: "opacity 0.2s"
|
|
101
107
|
},
|
|
102
108
|
onClick: (e) => e.stopPropagation(),
|
|
103
109
|
onMouseDown: (e) => e.stopPropagation(),
|
|
104
|
-
children: m.map((e,
|
|
105
|
-
|
|
110
|
+
children: m.map((e, i) => /* @__PURE__ */ t.jsx(
|
|
111
|
+
s,
|
|
106
112
|
{
|
|
107
113
|
onClick: (j) => {
|
|
108
|
-
j.stopPropagation(),
|
|
114
|
+
j.stopPropagation(), M(i);
|
|
109
115
|
},
|
|
110
116
|
sx: {
|
|
111
117
|
width: 8,
|
|
112
118
|
height: 8,
|
|
113
119
|
borderRadius: "50%",
|
|
114
|
-
bgcolor: l ===
|
|
120
|
+
bgcolor: l === i ? "primary.main" : "whiteAlpha.medium",
|
|
115
121
|
cursor: "pointer",
|
|
116
122
|
boxShadow: 1,
|
|
117
123
|
backdropFilter: "blur(4px)",
|
|
118
124
|
transition: "all 0.2s",
|
|
119
125
|
"&:hover": {
|
|
120
126
|
transform: "scale(1.2)",
|
|
121
|
-
bgcolor: l ===
|
|
127
|
+
bgcolor: l === i ? "primary.main" : "whiteAlpha.dark"
|
|
122
128
|
}
|
|
123
129
|
}
|
|
124
130
|
},
|
|
125
|
-
|
|
131
|
+
i
|
|
126
132
|
))
|
|
127
133
|
}
|
|
128
134
|
),
|
|
129
135
|
/* @__PURE__ */ t.jsxs(
|
|
130
|
-
|
|
136
|
+
s,
|
|
131
137
|
{
|
|
132
138
|
sx: {
|
|
133
139
|
position: "absolute",
|
|
@@ -135,11 +141,11 @@ const F = i.forwardRef(
|
|
|
135
141
|
height: "100%",
|
|
136
142
|
width: "4px",
|
|
137
143
|
cursor: "ew-resize",
|
|
138
|
-
left: `calc(${
|
|
144
|
+
left: `calc(${r}% - 2px)`
|
|
139
145
|
},
|
|
140
146
|
children: [
|
|
141
147
|
/* @__PURE__ */ t.jsx(
|
|
142
|
-
|
|
148
|
+
s,
|
|
143
149
|
{
|
|
144
150
|
sx: {
|
|
145
151
|
position: "absolute",
|
|
@@ -159,7 +165,7 @@ const F = i.forwardRef(
|
|
|
159
165
|
left: "50%",
|
|
160
166
|
transform: "translate(-50%, -50%)",
|
|
161
167
|
cursor: "ew-resize",
|
|
162
|
-
...
|
|
168
|
+
...v ? {
|
|
163
169
|
width: 48,
|
|
164
170
|
height: 48,
|
|
165
171
|
backdropFilter: "blur(8px)",
|
|
@@ -168,11 +174,11 @@ const F = i.forwardRef(
|
|
|
168
174
|
} : {},
|
|
169
175
|
transition: "all 0.3s ease-in-out",
|
|
170
176
|
"&:hover": {
|
|
171
|
-
bgcolor:
|
|
177
|
+
bgcolor: v ? "divider" : "transparent"
|
|
172
178
|
}
|
|
173
179
|
},
|
|
174
180
|
role: "slider",
|
|
175
|
-
"aria-valuenow":
|
|
181
|
+
"aria-valuenow": r,
|
|
176
182
|
"aria-valuemin": 0,
|
|
177
183
|
"aria-valuemax": 100,
|
|
178
184
|
"aria-orientation": "horizontal",
|
|
@@ -180,7 +186,7 @@ const F = i.forwardRef(
|
|
|
180
186
|
onClick: (e) => {
|
|
181
187
|
e.preventDefault(), e.stopPropagation();
|
|
182
188
|
},
|
|
183
|
-
children:
|
|
189
|
+
children: v && /* @__PURE__ */ t.jsxs(s, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
184
190
|
/* @__PURE__ */ t.jsx(A, {}),
|
|
185
191
|
/* @__PURE__ */ t.jsx(z, {})
|
|
186
192
|
] })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|