@solostylist/ui-kit 1.0.100 → 1.0.101
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/{ButtonBase-Cn3itpEl.js → ButtonBase-B-mcxJe8.js} +28 -28
- package/dist/{ChevronRight-G7jhiUBG.js → ChevronRight-BB4jrtLy.js} +1 -1
- package/dist/{Close-BSG2-e7H.js → Close-DqRHeMAW.js} +1 -1
- package/dist/ExpandMore-CE1RzE_y.js +8 -0
- package/dist/{Menu-DYOw-I_3.js → Menu-HtTElywx.js} +4 -4
- package/dist/{MenuItem-DTRBXdpX.js → MenuItem-DzviefY7.js} +3 -3
- package/dist/{Paper-DEq2MLtq.js → Paper-pJ5bSU59.js} +2 -2
- package/dist/{Select-DmB-tjlR.js → Select-C9Hk7BA8.js} +3 -3
- package/dist/{Stack-GTpsqQv0.js → Stack-TRopps6s.js} +1 -1
- package/dist/{Typography-zQXZ4jKl.js → Typography-DGEEI1Q-.js} +1 -1
- package/dist/{createSvgIcon-CS-Z7P80.js → createSvgIcon-DCQI9UV5.js} +3 -3
- package/dist/{mergeSlotProps-BbDReBm1.js → mergeSlotProps-N1VTlioP.js} +1 -1
- package/dist/s-accordion/s-accordion.js +102 -104
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +2 -2
- package/dist/s-comment-message/index.d.ts +2 -0
- package/dist/s-comment-message/index.js +4 -0
- package/dist/s-comment-message/package.json +5 -0
- package/dist/s-comment-message/s-comment-message.d.ts +21 -0
- package/dist/s-comment-message/s-comment-message.js +138 -0
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +3 -3
- package/dist/s-date-picker/s-date-picker.js +4 -4
- package/dist/s-datetime-picker/s-datetime-picker.js +7 -7
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +3 -3
- package/dist/s-image-comparison/s-image-comparison.js +1 -1
- package/dist/s-image-modal/s-image-modal.js +2 -2
- package/dist/s-label/s-label.js +5 -5
- package/dist/s-multi-select/s-multi-select.js +5 -5
- package/dist/s-review/s-review.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
- package/dist/s-text-field/s-text-field.js +5 -5
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/theme/components/avatar.js +3 -3
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/customizations/inputs.js +1 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/{useMobilePicker-By8yrJS0.js → useMobilePicker-c5_EH1sg.js} +6 -6
- package/package.json +1 -1
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as i } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { E as mo } from "../ExpandMore-CE1RzE_y.js";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import { l as go, P as o, j as yo } from "../createTheme-YLBX8GSj.js";
|
|
5
|
-
import {
|
|
5
|
+
import { u as K, a as L, b as Q, m as I } from "../createSvgIcon-DCQI9UV5.js";
|
|
6
|
+
import { b as xo, u as ho, e as bo, d as D, c as To, B as Co } from "../ButtonBase-B-mcxJe8.js";
|
|
6
7
|
import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
7
8
|
import { g as Y } from "../colorManipulator-ep5lERxB.js";
|
|
8
|
-
import { u as
|
|
9
|
+
import { u as Eo } from "../useControlled-nm4pBabJ.js";
|
|
9
10
|
import { s as T } from "../styled-DOEEZAON.js";
|
|
10
|
-
import { T as
|
|
11
|
-
import { S as Ro } from "../Stack-
|
|
12
|
-
import { T as Ao } from "../Typography-
|
|
13
|
-
|
|
14
|
-
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
15
|
-
}), "ExpandMore");
|
|
16
|
-
function Po(e) {
|
|
11
|
+
import { T as So, u as vo, g as ro, P as wo } from "../Paper-pJ5bSU59.js";
|
|
12
|
+
import { S as Ro } from "../Stack-TRopps6s.js";
|
|
13
|
+
import { T as Ao } from "../Typography-DGEEI1Q-.js";
|
|
14
|
+
function jo(e) {
|
|
17
15
|
return Y("MuiCollapse", e);
|
|
18
16
|
}
|
|
19
17
|
X("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
20
|
-
const
|
|
18
|
+
const Po = (e) => {
|
|
21
19
|
const {
|
|
22
20
|
orientation: t,
|
|
23
21
|
classes: r
|
|
24
|
-
} = e,
|
|
22
|
+
} = e, s = {
|
|
25
23
|
root: ["root", `${t}`],
|
|
26
24
|
entered: ["entered"],
|
|
27
25
|
hidden: ["hidden"],
|
|
28
26
|
wrapper: ["wrapper", `${t}`],
|
|
29
27
|
wrapperInner: ["wrapperInner", `${t}`]
|
|
30
28
|
};
|
|
31
|
-
return Q(
|
|
32
|
-
},
|
|
29
|
+
return Q(s, jo, r);
|
|
30
|
+
}, No = T("div", {
|
|
33
31
|
name: "MuiCollapse",
|
|
34
32
|
slot: "Root",
|
|
35
33
|
overridesResolver: (e, t) => {
|
|
@@ -38,7 +36,7 @@ const No = (e) => {
|
|
|
38
36
|
} = e;
|
|
39
37
|
return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
|
|
40
38
|
}
|
|
41
|
-
})(
|
|
39
|
+
})(I(({
|
|
42
40
|
theme: e
|
|
43
41
|
}) => ({
|
|
44
42
|
height: 0,
|
|
@@ -77,7 +75,7 @@ const No = (e) => {
|
|
|
77
75
|
visibility: "hidden"
|
|
78
76
|
}
|
|
79
77
|
}]
|
|
80
|
-
}))),
|
|
78
|
+
}))), Oo = T("div", {
|
|
81
79
|
name: "MuiCollapse",
|
|
82
80
|
slot: "Wrapper"
|
|
83
81
|
})({
|
|
@@ -93,7 +91,7 @@ const No = (e) => {
|
|
|
93
91
|
height: "100%"
|
|
94
92
|
}
|
|
95
93
|
}]
|
|
96
|
-
}),
|
|
94
|
+
}), Mo = T("div", {
|
|
97
95
|
name: "MuiCollapse",
|
|
98
96
|
slot: "WrapperInner"
|
|
99
97
|
})({
|
|
@@ -108,7 +106,7 @@ const No = (e) => {
|
|
|
108
106
|
}
|
|
109
107
|
}]
|
|
110
108
|
}), J = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
111
|
-
const
|
|
109
|
+
const s = K({
|
|
112
110
|
props: t,
|
|
113
111
|
name: "MuiCollapse"
|
|
114
112
|
}), {
|
|
@@ -116,9 +114,9 @@ const No = (e) => {
|
|
|
116
114
|
children: h,
|
|
117
115
|
className: b,
|
|
118
116
|
collapsedSize: f = "0px",
|
|
119
|
-
component:
|
|
117
|
+
component: E,
|
|
120
118
|
easing: $,
|
|
121
|
-
in:
|
|
119
|
+
in: S,
|
|
122
120
|
onEnter: A,
|
|
123
121
|
onEntered: j,
|
|
124
122
|
onEntering: z,
|
|
@@ -129,13 +127,13 @@ const No = (e) => {
|
|
|
129
127
|
style: m,
|
|
130
128
|
timeout: d = go.standard,
|
|
131
129
|
// eslint-disable-next-line react/prop-types
|
|
132
|
-
TransitionComponent: N =
|
|
130
|
+
TransitionComponent: N = So,
|
|
133
131
|
...G
|
|
134
|
-
} =
|
|
135
|
-
...
|
|
132
|
+
} = s, v = {
|
|
133
|
+
...s,
|
|
136
134
|
orientation: c,
|
|
137
135
|
collapsedSize: f
|
|
138
|
-
}, u =
|
|
136
|
+
}, u = Po(v), w = vo(), U = xo(), a = l.useRef(null), g = l.useRef(), C = typeof f == "number" ? `${f}px` : f, O = c === "horizontal", M = O ? "width" : "height", k = l.useRef(null), Z = ho(r, k), R = (n) => (y) => {
|
|
139
137
|
if (n) {
|
|
140
138
|
const x = k.current;
|
|
141
139
|
y === void 0 ? n(x) : n(x, y);
|
|
@@ -185,8 +183,8 @@ const No = (e) => {
|
|
|
185
183
|
}), fo = (n) => {
|
|
186
184
|
d === "auto" && U.start(g.current || 0, n), p && p(k.current, n);
|
|
187
185
|
};
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
in:
|
|
186
|
+
return /* @__PURE__ */ i.jsx(N, {
|
|
187
|
+
in: S,
|
|
190
188
|
onEnter: oo,
|
|
191
189
|
onEntered: co,
|
|
192
190
|
onEntering: eo,
|
|
@@ -200,11 +198,11 @@ const No = (e) => {
|
|
|
200
198
|
children: (n, {
|
|
201
199
|
ownerState: y,
|
|
202
200
|
...x
|
|
203
|
-
}) => /* @__PURE__ */
|
|
204
|
-
as:
|
|
201
|
+
}) => /* @__PURE__ */ i.jsx(No, {
|
|
202
|
+
as: E,
|
|
205
203
|
className: L(u.root, b, {
|
|
206
204
|
entered: u.entered,
|
|
207
|
-
exited: !
|
|
205
|
+
exited: !S && C === "0px" && u.hidden
|
|
208
206
|
}[n]),
|
|
209
207
|
style: {
|
|
210
208
|
[O ? "minWidth" : "minHeight"]: C,
|
|
@@ -216,14 +214,14 @@ const No = (e) => {
|
|
|
216
214
|
state: n
|
|
217
215
|
},
|
|
218
216
|
...x,
|
|
219
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ i.jsx(Oo, {
|
|
220
218
|
ownerState: {
|
|
221
219
|
...v,
|
|
222
220
|
state: n
|
|
223
221
|
},
|
|
224
222
|
className: u.wrapper,
|
|
225
223
|
ref: a,
|
|
226
|
-
children: /* @__PURE__ */
|
|
224
|
+
children: /* @__PURE__ */ i.jsx(Mo, {
|
|
227
225
|
ownerState: {
|
|
228
226
|
...v,
|
|
229
227
|
state: n
|
|
@@ -336,20 +334,20 @@ process.env.NODE_ENV !== "production" && (to.displayName = "AccordionContext");
|
|
|
336
334
|
function Do(e) {
|
|
337
335
|
return Y("MuiAccordion", e);
|
|
338
336
|
}
|
|
339
|
-
const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]),
|
|
337
|
+
const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), Io = (e) => {
|
|
340
338
|
const {
|
|
341
339
|
classes: t,
|
|
342
340
|
square: r,
|
|
343
|
-
expanded:
|
|
341
|
+
expanded: s,
|
|
344
342
|
disabled: p,
|
|
345
343
|
disableGutters: h
|
|
346
344
|
} = e;
|
|
347
345
|
return Q({
|
|
348
|
-
root: ["root", !r && "rounded",
|
|
346
|
+
root: ["root", !r && "rounded", s && "expanded", p && "disabled", !h && "gutters"],
|
|
349
347
|
heading: ["heading"],
|
|
350
348
|
region: ["region"]
|
|
351
349
|
}, Do, t);
|
|
352
|
-
},
|
|
350
|
+
}, $o = T(wo, {
|
|
353
351
|
name: "MuiAccordion",
|
|
354
352
|
slot: "Root",
|
|
355
353
|
overridesResolver: (e, t) => {
|
|
@@ -360,7 +358,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
360
358
|
[`& .${_.region}`]: t.region
|
|
361
359
|
}, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
|
|
362
360
|
}
|
|
363
|
-
})(
|
|
361
|
+
})(I(({
|
|
364
362
|
theme: e
|
|
365
363
|
}) => {
|
|
366
364
|
const t = {
|
|
@@ -407,7 +405,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
407
405
|
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
408
406
|
}
|
|
409
407
|
};
|
|
410
|
-
}),
|
|
408
|
+
}), I(({
|
|
411
409
|
theme: e
|
|
412
410
|
}) => ({
|
|
413
411
|
variants: [{
|
|
@@ -436,16 +434,16 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
436
434
|
}
|
|
437
435
|
}
|
|
438
436
|
}]
|
|
439
|
-
}))),
|
|
437
|
+
}))), zo = T("h3", {
|
|
440
438
|
name: "MuiAccordion",
|
|
441
439
|
slot: "Heading"
|
|
442
440
|
})({
|
|
443
441
|
all: "unset"
|
|
444
|
-
}),
|
|
442
|
+
}), Wo = T("div", {
|
|
445
443
|
name: "MuiAccordion",
|
|
446
444
|
slot: "Region"
|
|
447
445
|
})({}), so = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
448
|
-
const
|
|
446
|
+
const s = K({
|
|
449
447
|
props: t,
|
|
450
448
|
name: "MuiAccordion"
|
|
451
449
|
}), {
|
|
@@ -453,34 +451,34 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
453
451
|
className: h,
|
|
454
452
|
defaultExpanded: b = !1,
|
|
455
453
|
disabled: f = !1,
|
|
456
|
-
disableGutters:
|
|
454
|
+
disableGutters: E = !1,
|
|
457
455
|
expanded: $,
|
|
458
|
-
onChange:
|
|
456
|
+
onChange: S,
|
|
459
457
|
square: A = !1,
|
|
460
458
|
slots: j = {},
|
|
461
459
|
slotProps: z = {},
|
|
462
460
|
TransitionComponent: P,
|
|
463
461
|
TransitionProps: W,
|
|
464
462
|
...V
|
|
465
|
-
} =
|
|
463
|
+
} = s, [c, m] = Eo({
|
|
466
464
|
controlled: $,
|
|
467
465
|
default: b,
|
|
468
466
|
name: "Accordion",
|
|
469
467
|
state: "expanded"
|
|
470
468
|
}), d = l.useCallback((eo) => {
|
|
471
|
-
m(!c),
|
|
472
|
-
}, [c,
|
|
469
|
+
m(!c), S && S(eo, !c);
|
|
470
|
+
}, [c, S, m]), [N, ...G] = l.Children.toArray(p), v = l.useMemo(() => ({
|
|
473
471
|
expanded: c,
|
|
474
472
|
disabled: f,
|
|
475
|
-
disableGutters:
|
|
473
|
+
disableGutters: E,
|
|
476
474
|
toggle: d
|
|
477
|
-
}), [c, f,
|
|
478
|
-
...
|
|
475
|
+
}), [c, f, E, d]), u = {
|
|
476
|
+
...s,
|
|
479
477
|
square: A,
|
|
480
478
|
disabled: f,
|
|
481
|
-
disableGutters:
|
|
479
|
+
disableGutters: E,
|
|
482
480
|
expanded: c
|
|
483
|
-
}, w =
|
|
481
|
+
}, w = Io(u), U = {
|
|
484
482
|
transition: P,
|
|
485
483
|
...j
|
|
486
484
|
}, a = {
|
|
@@ -489,8 +487,8 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
489
487
|
}, g = {
|
|
490
488
|
slots: U,
|
|
491
489
|
slotProps: a
|
|
492
|
-
}, [C, O] =
|
|
493
|
-
elementType:
|
|
490
|
+
}, [C, O] = D("root", {
|
|
491
|
+
elementType: $o,
|
|
494
492
|
externalForwardedProps: {
|
|
495
493
|
...g,
|
|
496
494
|
...V
|
|
@@ -502,17 +500,17 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
502
500
|
additionalProps: {
|
|
503
501
|
square: A
|
|
504
502
|
}
|
|
505
|
-
}), [M, k] =
|
|
506
|
-
elementType:
|
|
503
|
+
}), [M, k] = D("heading", {
|
|
504
|
+
elementType: zo,
|
|
507
505
|
externalForwardedProps: g,
|
|
508
506
|
className: w.heading,
|
|
509
507
|
ownerState: u
|
|
510
|
-
}), [Z, R] =
|
|
508
|
+
}), [Z, R] = D("transition", {
|
|
511
509
|
elementType: J,
|
|
512
510
|
externalForwardedProps: g,
|
|
513
511
|
ownerState: u
|
|
514
|
-
}), [H, oo] =
|
|
515
|
-
elementType:
|
|
512
|
+
}), [H, oo] = D("region", {
|
|
513
|
+
elementType: Wo,
|
|
516
514
|
externalForwardedProps: g,
|
|
517
515
|
ownerState: u,
|
|
518
516
|
className: w.region,
|
|
@@ -522,19 +520,19 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
522
520
|
role: "region"
|
|
523
521
|
}
|
|
524
522
|
});
|
|
525
|
-
return /* @__PURE__ */
|
|
523
|
+
return /* @__PURE__ */ i.jsxs(C, {
|
|
526
524
|
...O,
|
|
527
|
-
children: [/* @__PURE__ */
|
|
525
|
+
children: [/* @__PURE__ */ i.jsx(M, {
|
|
528
526
|
...k,
|
|
529
|
-
children: /* @__PURE__ */
|
|
527
|
+
children: /* @__PURE__ */ i.jsx(to.Provider, {
|
|
530
528
|
value: v,
|
|
531
529
|
children: N
|
|
532
530
|
})
|
|
533
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ i.jsx(Z, {
|
|
534
532
|
in: c,
|
|
535
533
|
timeout: "auto",
|
|
536
534
|
...R,
|
|
537
|
-
children: /* @__PURE__ */
|
|
535
|
+
children: /* @__PURE__ */ i.jsx(H, {
|
|
538
536
|
...oo,
|
|
539
537
|
children: G
|
|
540
538
|
})
|
|
@@ -630,33 +628,33 @@ process.env.NODE_ENV !== "production" && (so.propTypes = {
|
|
|
630
628
|
*/
|
|
631
629
|
TransitionProps: o.object
|
|
632
630
|
});
|
|
633
|
-
function
|
|
631
|
+
function Vo(e) {
|
|
634
632
|
return Y("MuiAccordionDetails", e);
|
|
635
633
|
}
|
|
636
634
|
X("MuiAccordionDetails", ["root"]);
|
|
637
|
-
const
|
|
635
|
+
const ko = (e) => {
|
|
638
636
|
const {
|
|
639
637
|
classes: t
|
|
640
638
|
} = e;
|
|
641
639
|
return Q({
|
|
642
640
|
root: ["root"]
|
|
643
|
-
},
|
|
644
|
-
},
|
|
641
|
+
}, Vo, t);
|
|
642
|
+
}, Fo = T("div", {
|
|
645
643
|
name: "MuiAccordionDetails",
|
|
646
644
|
slot: "Root"
|
|
647
|
-
})(
|
|
645
|
+
})(I(({
|
|
648
646
|
theme: e
|
|
649
647
|
}) => ({
|
|
650
648
|
padding: e.spacing(1, 2, 2)
|
|
651
649
|
}))), io = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
652
|
-
const
|
|
650
|
+
const s = K({
|
|
653
651
|
props: t,
|
|
654
652
|
name: "MuiAccordionDetails"
|
|
655
653
|
}), {
|
|
656
654
|
className: p,
|
|
657
655
|
...h
|
|
658
|
-
} =
|
|
659
|
-
return /* @__PURE__ */
|
|
656
|
+
} = s, b = s, f = ko(b);
|
|
657
|
+
return /* @__PURE__ */ i.jsx(Fo, {
|
|
660
658
|
className: L(f.root, p),
|
|
661
659
|
ref: r,
|
|
662
660
|
ownerState: b,
|
|
@@ -685,26 +683,26 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
685
683
|
*/
|
|
686
684
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
687
685
|
});
|
|
688
|
-
function
|
|
686
|
+
function Go(e) {
|
|
689
687
|
return Y("MuiAccordionSummary", e);
|
|
690
688
|
}
|
|
691
|
-
const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]),
|
|
689
|
+
const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Uo = (e) => {
|
|
692
690
|
const {
|
|
693
691
|
classes: t,
|
|
694
692
|
expanded: r,
|
|
695
|
-
disabled:
|
|
693
|
+
disabled: s,
|
|
696
694
|
disableGutters: p
|
|
697
695
|
} = e;
|
|
698
696
|
return Q({
|
|
699
|
-
root: ["root", r && "expanded",
|
|
697
|
+
root: ["root", r && "expanded", s && "disabled", !p && "gutters"],
|
|
700
698
|
focusVisible: ["focusVisible"],
|
|
701
699
|
content: ["content", r && "expanded", !p && "contentGutters"],
|
|
702
700
|
expandIconWrapper: ["expandIconWrapper", r && "expanded"]
|
|
703
|
-
},
|
|
704
|
-
},
|
|
701
|
+
}, Go, t);
|
|
702
|
+
}, Ho = T(Co, {
|
|
705
703
|
name: "MuiAccordionSummary",
|
|
706
704
|
slot: "Root"
|
|
707
|
-
})(
|
|
705
|
+
})(I(({
|
|
708
706
|
theme: e
|
|
709
707
|
}) => {
|
|
710
708
|
const t = {
|
|
@@ -734,10 +732,10 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
734
732
|
}
|
|
735
733
|
}]
|
|
736
734
|
};
|
|
737
|
-
})),
|
|
735
|
+
})), Bo = T("span", {
|
|
738
736
|
name: "MuiAccordionSummary",
|
|
739
737
|
slot: "Content"
|
|
740
|
-
})(
|
|
738
|
+
})(I(({
|
|
741
739
|
theme: e
|
|
742
740
|
}) => ({
|
|
743
741
|
display: "flex",
|
|
@@ -755,10 +753,10 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
755
753
|
}
|
|
756
754
|
}
|
|
757
755
|
}]
|
|
758
|
-
}))),
|
|
756
|
+
}))), Lo = T("span", {
|
|
759
757
|
name: "MuiAccordionSummary",
|
|
760
758
|
slot: "ExpandIconWrapper"
|
|
761
|
-
})(
|
|
759
|
+
})(I(({
|
|
762
760
|
theme: e
|
|
763
761
|
}) => ({
|
|
764
762
|
display: "flex",
|
|
@@ -771,7 +769,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
771
769
|
transform: "rotate(180deg)"
|
|
772
770
|
}
|
|
773
771
|
}))), ao = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
774
|
-
const
|
|
772
|
+
const s = K({
|
|
775
773
|
props: t,
|
|
776
774
|
name: "MuiAccordionSummary"
|
|
777
775
|
}), {
|
|
@@ -779,30 +777,30 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
779
777
|
className: h,
|
|
780
778
|
expandIcon: b,
|
|
781
779
|
focusVisibleClassName: f,
|
|
782
|
-
onClick:
|
|
780
|
+
onClick: E,
|
|
783
781
|
slots: $,
|
|
784
|
-
slotProps:
|
|
782
|
+
slotProps: S,
|
|
785
783
|
...A
|
|
786
|
-
} =
|
|
784
|
+
} = s, {
|
|
787
785
|
disabled: j = !1,
|
|
788
786
|
disableGutters: z,
|
|
789
787
|
expanded: P,
|
|
790
788
|
toggle: W
|
|
791
789
|
} = l.useContext(to), V = (a) => {
|
|
792
|
-
W && W(a),
|
|
790
|
+
W && W(a), E && E(a);
|
|
793
791
|
}, c = {
|
|
794
|
-
...
|
|
792
|
+
...s,
|
|
795
793
|
expanded: P,
|
|
796
794
|
disabled: j,
|
|
797
795
|
disableGutters: z
|
|
798
|
-
}, m =
|
|
796
|
+
}, m = Uo(c), d = {
|
|
799
797
|
slots: $,
|
|
800
|
-
slotProps:
|
|
801
|
-
}, [N, G] =
|
|
798
|
+
slotProps: S
|
|
799
|
+
}, [N, G] = D("root", {
|
|
802
800
|
ref: r,
|
|
803
801
|
shouldForwardComponentProp: !0,
|
|
804
802
|
className: L(m.root, h),
|
|
805
|
-
elementType:
|
|
803
|
+
elementType: Ho,
|
|
806
804
|
externalForwardedProps: {
|
|
807
805
|
...d,
|
|
808
806
|
...A
|
|
@@ -822,23 +820,23 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
822
820
|
(C = a.onClick) == null || C.call(a, g), V(g);
|
|
823
821
|
}
|
|
824
822
|
})
|
|
825
|
-
}), [v, u] =
|
|
823
|
+
}), [v, u] = D("content", {
|
|
826
824
|
className: m.content,
|
|
827
|
-
elementType:
|
|
825
|
+
elementType: Bo,
|
|
828
826
|
externalForwardedProps: d,
|
|
829
827
|
ownerState: c
|
|
830
|
-
}), [w, U] =
|
|
828
|
+
}), [w, U] = D("expandIconWrapper", {
|
|
831
829
|
className: m.expandIconWrapper,
|
|
832
|
-
elementType:
|
|
830
|
+
elementType: Lo,
|
|
833
831
|
externalForwardedProps: d,
|
|
834
832
|
ownerState: c
|
|
835
833
|
});
|
|
836
|
-
return /* @__PURE__ */
|
|
834
|
+
return /* @__PURE__ */ i.jsxs(N, {
|
|
837
835
|
...G,
|
|
838
|
-
children: [/* @__PURE__ */
|
|
836
|
+
children: [/* @__PURE__ */ i.jsx(v, {
|
|
839
837
|
...u,
|
|
840
838
|
children: p
|
|
841
|
-
}), b && /* @__PURE__ */
|
|
839
|
+
}), b && /* @__PURE__ */ i.jsx(w, {
|
|
842
840
|
...U,
|
|
843
841
|
children: b
|
|
844
842
|
})]
|
|
@@ -901,10 +899,10 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
901
899
|
*/
|
|
902
900
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
903
901
|
});
|
|
904
|
-
const re = ({ title: e, children: t, startIcon: r, defaultExpanded:
|
|
902
|
+
const re = ({ title: e, children: t, startIcon: r, defaultExpanded: s = !1 }) => /* @__PURE__ */ i.jsxs(
|
|
905
903
|
so,
|
|
906
904
|
{
|
|
907
|
-
defaultExpanded:
|
|
905
|
+
defaultExpanded: s,
|
|
908
906
|
sx: {
|
|
909
907
|
borderRadius: 1,
|
|
910
908
|
border: "1px solid",
|
|
@@ -912,11 +910,11 @@ const re = ({ title: e, children: t, startIcon: r, defaultExpanded: i = !1 }) =>
|
|
|
912
910
|
},
|
|
913
911
|
elevation: 0,
|
|
914
912
|
children: [
|
|
915
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ i.jsx(ao, { expandIcon: /* @__PURE__ */ i.jsx(mo, {}), children: /* @__PURE__ */ i.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
916
914
|
r,
|
|
917
|
-
/* @__PURE__ */
|
|
915
|
+
/* @__PURE__ */ i.jsx(Ao, { variant: "subtitle1", fontWeight: 600, children: e })
|
|
918
916
|
] }) }),
|
|
919
|
-
/* @__PURE__ */
|
|
917
|
+
/* @__PURE__ */ i.jsx(io, { children: t })
|
|
920
918
|
]
|
|
921
919
|
}
|
|
922
920
|
);
|
|
@@ -3,7 +3,7 @@ import ue, { forwardRef as nt } from "react";
|
|
|
3
3
|
import { styled as Me, useTheme as it } from "@mui/material";
|
|
4
4
|
import { c as be, a as ot, g as at } from "../_commonjsHelpers-B4e78b8K.js";
|
|
5
5
|
import Ue from "../s-icon-button/s-icon-button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { c as $e } from "../createSvgIcon-DCQI9UV5.js";
|
|
7
7
|
import '../assets/s-carousel.css';const lt = $e(/* @__PURE__ */ oe.jsx("path", {
|
|
8
8
|
d: "M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"
|
|
9
9
|
}), "ArrowBackIosNew"), st = $e(/* @__PURE__ */ oe.jsx("path", {
|
|
@@ -5,8 +5,8 @@ import H from "emoji-picker-react";
|
|
|
5
5
|
import _ from "../s-file-icon/s-file-icon.js";
|
|
6
6
|
import d from "../s-icon-button/s-icon-button.js";
|
|
7
7
|
import q from "../s-text-field/s-text-field.js";
|
|
8
|
-
import { C as G } from "../Close-
|
|
9
|
-
import {
|
|
8
|
+
import { C as G } from "../Close-DqRHeMAW.js";
|
|
9
|
+
import { c as k } from "../createSvgIcon-DCQI9UV5.js";
|
|
10
10
|
const J = k(/* @__PURE__ */ r.jsx("path", {
|
|
11
11
|
d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
|
|
12
12
|
}), "ArrowUpward"), N = k(/* @__PURE__ */ r.jsx("path", {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
export interface SCommentMessageProps {
|
|
4
|
+
id?: string | number;
|
|
5
|
+
userName: string;
|
|
6
|
+
userAvatar?: string;
|
|
7
|
+
commentContent: string;
|
|
8
|
+
datetime: Date | string;
|
|
9
|
+
likes?: number;
|
|
10
|
+
isLiked?: boolean;
|
|
11
|
+
replies?: SCommentMessageProps[];
|
|
12
|
+
onLike?: (commentId: string | number) => void;
|
|
13
|
+
onReply?: (commentId: string | number, parentId?: string | number) => void;
|
|
14
|
+
showReplies?: boolean;
|
|
15
|
+
avatarSize?: number;
|
|
16
|
+
level?: number;
|
|
17
|
+
maxLevel?: number;
|
|
18
|
+
sx?: SxProps;
|
|
19
|
+
}
|
|
20
|
+
declare const SCommentMessage: React.FC<SCommentMessageProps>;
|
|
21
|
+
export default SCommentMessage;
|