@solostylist/ui-kit 1.0.90 → 1.0.92
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/main.d.ts +2 -0
- package/dist/main.js +107 -105
- package/dist/s-accordion/s-accordion.js +19 -18
- package/dist/s-chat-message/index.d.ts +2 -0
- package/dist/s-chat-message/index.js +4 -0
- package/dist/s-chat-message/package.json +5 -0
- package/dist/s-chat-message/s-chat-message.d.ts +14 -0
- package/dist/s-chat-message/s-chat-message.js +113 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export { default as SButtonLink } from './s-button-link/index';
|
|
|
10
10
|
export type { SButtonLinkProps } from './s-button-link/index';
|
|
11
11
|
export { default as SChatInput } from './s-chat-input/index';
|
|
12
12
|
export type { SChatInputProps } from './s-chat-input/index';
|
|
13
|
+
export { default as SChatMessage } from './s-chat-message/index';
|
|
14
|
+
export type { SChatMessageProps } from './s-chat-message/index';
|
|
13
15
|
export { default as STextEditor } from './s-text-editor/index';
|
|
14
16
|
export type { STextEditorProps } from './s-text-editor/index';
|
|
15
17
|
export { default as SCheckbox } from './s-checkbox/index';
|
package/dist/main.js
CHANGED
|
@@ -4,117 +4,119 @@ import { default as m } from "./s-avatar/s-avatar.js";
|
|
|
4
4
|
import { default as s } from "./s-button/s-button.js";
|
|
5
5
|
import { default as S } from "./s-button-link/s-button-link.js";
|
|
6
6
|
import { default as u } from "./s-chat-input/s-chat-input.js";
|
|
7
|
-
import { default as n } from "./s-
|
|
7
|
+
import { default as n } from "./s-chat-message/s-chat-message.js";
|
|
8
|
+
import { default as c } from "./s-text-editor/s-text-editor.js";
|
|
8
9
|
import "./s-text-editor/s-text-editor-toolbar.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { DialogConfirmProvider as
|
|
14
|
-
import { DialogMessageProvider as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { SSmartTextField as
|
|
34
|
-
import { SCopilotKitProvider as
|
|
35
|
-
import { SStripeCVC as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { MediaItem as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { useDialog as
|
|
49
|
-
import { usePopover as
|
|
50
|
-
import { formatDatePosted as
|
|
51
|
-
import { bytesToSize as
|
|
52
|
-
import { LogLevel as
|
|
53
|
-
import { default as
|
|
10
|
+
import { default as D } from "./s-checkbox/s-checkbox.js";
|
|
11
|
+
import { default as P } from "./s-chip/s-chip.js";
|
|
12
|
+
import { default as M } from "./s-chips/s-chips.js";
|
|
13
|
+
import { default as b } from "./s-data-table/s-data-table.js";
|
|
14
|
+
import { DialogConfirmProvider as L, default as y, useDialogConfirm as h } from "./s-dialog-confirm/s-dialog-confirm.js";
|
|
15
|
+
import { DialogMessageProvider as B, default as z, useDialogMessage as E } from "./s-dialog-message/s-dialog-message.js";
|
|
16
|
+
import { default as G } from "./s-error/s-error.js";
|
|
17
|
+
import { default as j } from "./s-empty/s-empty.js";
|
|
18
|
+
import { default as K } from "./s-dialog/s-dialog.js";
|
|
19
|
+
import { default as q } from "./s-file-dropzone/s-file-dropzone.js";
|
|
20
|
+
import { default as J } from "./s-file-icon/s-file-icon.js";
|
|
21
|
+
import { default as Q } from "./s-i18n-provider/s-i18n-provider.js";
|
|
22
|
+
import { default as U } from "./s-icon-button/s-icon-button.js";
|
|
23
|
+
import { default as X } from "./s-label/s-label.js";
|
|
24
|
+
import { default as Z } from "./s-multi-select/s-multi-select.js";
|
|
25
|
+
import { default as $ } from "./s-no-ssr/s-no-ssr.js";
|
|
26
|
+
import { default as oe } from "./s-text-field/s-text-field.js";
|
|
27
|
+
import { default as te } from "./s-pagination/s-pagination.js";
|
|
28
|
+
import { default as fe } from "./s-select/s-select.js";
|
|
29
|
+
import { default as me } from "./s-skeleton/s-skeleton.js";
|
|
30
|
+
import { default as se } from "./s-tip/s-tip.js";
|
|
31
|
+
import { default as Se } from "./s-text-truncation/s-text-truncation.js";
|
|
32
|
+
import { default as ue, SnackbarMessageProvider as ie, useSnackbarMessage as ne } from "./s-snackbar-message/s-snackbar-message.js";
|
|
33
|
+
import { default as ce } from "./s-form/s-form.js";
|
|
34
|
+
import { SSmartTextField as De } from "./s-smart-text-field/s-smart-text-field.js";
|
|
35
|
+
import { SCopilotKitProvider as Pe } from "./s-copilot-kit-provider/s-copilot-kit-provider.js";
|
|
36
|
+
import { SStripeCVC as Me, SStripeExpiry as Ie, SStripeNumber as be, StripeTextField as ke } from "./s-stripe/s-stripe.js";
|
|
37
|
+
import { default as ye } from "./s-theme-provider/s-theme-provider.js";
|
|
38
|
+
import { default as Fe } from "./s-datetime-picker/s-datetime-picker.js";
|
|
39
|
+
import { default as ze } from "./s-date-picker/s-date-picker.js";
|
|
40
|
+
import { default as Ae } from "./s-localization-provider/s-localization-provider.js";
|
|
41
|
+
import { default as Ne } from "./s-gradient-icon/s-gradient-icon.js";
|
|
42
|
+
import { default as we } from "./s-glow-button/s-glow-button.js";
|
|
43
|
+
import { default as Ve } from "./s-moving-border/s-moving-border.js";
|
|
44
|
+
import { default as He } from "./s-copyable-text/s-copyable-text.js";
|
|
45
|
+
import { MediaItem as Oe, default as Qe } from "./s-interactive-gallery/s-interactive-gallery.js";
|
|
46
|
+
import { default as Ue } from "./s-image-modal/s-image-modal.js";
|
|
47
|
+
import { default as Xe } from "./s-lazy-image/s-lazy-image.js";
|
|
48
|
+
import { default as Ze } from "./s-image-comparison/s-image-comparison.js";
|
|
49
|
+
import { useDialog as $e } from "./hooks/use-dialog.js";
|
|
50
|
+
import { usePopover as oo } from "./hooks/use-popover.js";
|
|
51
|
+
import { formatDatePosted as to } from "./utils/dayjs.js";
|
|
52
|
+
import { bytesToSize as fo } from "./utils/bytes-to-size.js";
|
|
53
|
+
import { LogLevel as mo, Logger as po, createLogger as so, logger as So } from "./utils/logger.js";
|
|
54
|
+
import { default as uo } from "dayjs";
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
L as DialogConfirmProvider,
|
|
57
|
+
B as DialogMessageProvider,
|
|
58
|
+
mo as LogLevel,
|
|
59
|
+
po as Logger,
|
|
60
|
+
Oe as MediaItem,
|
|
60
61
|
t as SAccordion,
|
|
61
62
|
f as SAutocomplete,
|
|
62
63
|
m as SAvatar,
|
|
63
64
|
s as SButton,
|
|
64
65
|
S as SButtonLink,
|
|
65
66
|
u as SChatInput,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
P as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
q as
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
Q as
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Z as
|
|
95
|
-
|
|
96
|
-
te as
|
|
97
|
-
fe as
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Ie as
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
67
|
+
n as SChatMessage,
|
|
68
|
+
D as SCheckbox,
|
|
69
|
+
P as SChip,
|
|
70
|
+
M as SChips,
|
|
71
|
+
Pe as SCopilotKitProvider,
|
|
72
|
+
He as SCopyableText,
|
|
73
|
+
b as SDataTable,
|
|
74
|
+
ze as SDatePicker,
|
|
75
|
+
Fe as SDateTimePicker,
|
|
76
|
+
K as SDialog,
|
|
77
|
+
y as SDialogConfirm,
|
|
78
|
+
z as SDialogMessage,
|
|
79
|
+
j as SEmpty,
|
|
80
|
+
G as SError,
|
|
81
|
+
q as SFileDropzone,
|
|
82
|
+
J as SFileIcon,
|
|
83
|
+
ce as SForm,
|
|
84
|
+
we as SGlowButton,
|
|
85
|
+
Ne as SGradientIcon,
|
|
86
|
+
Q as SI18nProvider,
|
|
87
|
+
U as SIconButton,
|
|
88
|
+
Ze as SImageComparison,
|
|
89
|
+
Ue as SImageModal,
|
|
90
|
+
Qe as SInteractiveGallery,
|
|
91
|
+
X as SLabel,
|
|
92
|
+
Xe as SLazyImage,
|
|
93
|
+
Ae as SLocalizationProvider,
|
|
94
|
+
Ve as SMovingBorder,
|
|
95
|
+
Z as SMultiSelect,
|
|
96
|
+
$ as SNoSsr,
|
|
97
|
+
te as SPagination,
|
|
98
|
+
fe as SSelect,
|
|
99
|
+
me as SSkeleton,
|
|
100
|
+
De as SSmartTextField,
|
|
101
|
+
ue as SSnackbarMessage,
|
|
102
|
+
Me as SStripeCVC,
|
|
103
|
+
Ie as SStripeExpiry,
|
|
104
|
+
be as SStripeNumber,
|
|
105
|
+
c as STextEditor,
|
|
106
|
+
oe as STextField,
|
|
107
|
+
Se as STextTruncation,
|
|
108
|
+
ye as SThemeProvider,
|
|
109
|
+
se as STip,
|
|
110
|
+
ie as SnackbarMessageProvider,
|
|
111
|
+
ke as StripeTextField,
|
|
112
|
+
fo as bytesToSize,
|
|
113
|
+
so as createLogger,
|
|
114
|
+
uo as dayjs,
|
|
115
|
+
to as formatDatePosted,
|
|
116
|
+
So as logger,
|
|
117
|
+
$e as useDialog,
|
|
118
|
+
h as useDialogConfirm,
|
|
119
|
+
E as useDialogMessage,
|
|
120
|
+
oo as usePopover,
|
|
121
|
+
ne as useSnackbarMessage
|
|
120
122
|
};
|
|
@@ -6,7 +6,7 @@ import { b as xo, u as ho, e as bo, d as I, c as To, B as Co } from "../ButtonBa
|
|
|
6
6
|
import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
7
7
|
import { g as Y } from "../colorManipulator-ep5lERxB.js";
|
|
8
8
|
import { u as So } from "../useControlled-nm4pBabJ.js";
|
|
9
|
-
import { T as
|
|
9
|
+
import { T as vo, u as Eo, g as ro, P as wo } from "../Paper-CH6cuu9i.js";
|
|
10
10
|
import { S as Ro } from "../Stack-CIrlOUXL.js";
|
|
11
11
|
import { T as Ao } from "../Typography-D-VP4V1G.js";
|
|
12
12
|
const jo = mo(/* @__PURE__ */ s.jsx("path", {
|
|
@@ -117,7 +117,7 @@ const No = (e) => {
|
|
|
117
117
|
collapsedSize: f = "0px",
|
|
118
118
|
component: S,
|
|
119
119
|
easing: $,
|
|
120
|
-
in:
|
|
120
|
+
in: v,
|
|
121
121
|
onEnter: A,
|
|
122
122
|
onEntered: j,
|
|
123
123
|
onEntering: z,
|
|
@@ -128,13 +128,13 @@ const No = (e) => {
|
|
|
128
128
|
style: m,
|
|
129
129
|
timeout: d = go.standard,
|
|
130
130
|
// eslint-disable-next-line react/prop-types
|
|
131
|
-
TransitionComponent: N =
|
|
131
|
+
TransitionComponent: N = vo,
|
|
132
132
|
...G
|
|
133
|
-
} = i,
|
|
133
|
+
} = i, E = {
|
|
134
134
|
...i,
|
|
135
135
|
orientation: c,
|
|
136
136
|
collapsedSize: f
|
|
137
|
-
}, u = No(
|
|
137
|
+
}, u = No(E), w = Eo(), U = xo(), a = l.useRef(null), g = l.useRef(), C = typeof f == "number" ? `${f}px` : f, O = c === "horizontal", M = O ? "width" : "height", V = l.useRef(null), Z = ho(r, V), R = (n) => (y) => {
|
|
138
138
|
if (n) {
|
|
139
139
|
const x = V.current;
|
|
140
140
|
y === void 0 ? n(x) : n(x, y);
|
|
@@ -185,7 +185,7 @@ const No = (e) => {
|
|
|
185
185
|
d === "auto" && U.start(g.current || 0, n), p && p(V.current, n);
|
|
186
186
|
};
|
|
187
187
|
return /* @__PURE__ */ s.jsx(N, {
|
|
188
|
-
in:
|
|
188
|
+
in: v,
|
|
189
189
|
onEnter: oo,
|
|
190
190
|
onEntered: co,
|
|
191
191
|
onEntering: eo,
|
|
@@ -203,7 +203,7 @@ const No = (e) => {
|
|
|
203
203
|
as: S,
|
|
204
204
|
className: L(u.root, b, {
|
|
205
205
|
entered: u.entered,
|
|
206
|
-
exited: !
|
|
206
|
+
exited: !v && C === "0px" && u.hidden
|
|
207
207
|
}[n]),
|
|
208
208
|
style: {
|
|
209
209
|
[O ? "minWidth" : "minHeight"]: C,
|
|
@@ -211,20 +211,20 @@ const No = (e) => {
|
|
|
211
211
|
},
|
|
212
212
|
ref: Z,
|
|
213
213
|
ownerState: {
|
|
214
|
-
...
|
|
214
|
+
...E,
|
|
215
215
|
state: n
|
|
216
216
|
},
|
|
217
217
|
...x,
|
|
218
218
|
children: /* @__PURE__ */ s.jsx(Mo, {
|
|
219
219
|
ownerState: {
|
|
220
|
-
...
|
|
220
|
+
...E,
|
|
221
221
|
state: n
|
|
222
222
|
},
|
|
223
223
|
className: u.wrapper,
|
|
224
224
|
ref: a,
|
|
225
225
|
children: /* @__PURE__ */ s.jsx(Io, {
|
|
226
226
|
ownerState: {
|
|
227
|
-
...
|
|
227
|
+
...E,
|
|
228
228
|
state: n
|
|
229
229
|
},
|
|
230
230
|
className: u.wrapperInner,
|
|
@@ -454,7 +454,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
454
454
|
disabled: f = !1,
|
|
455
455
|
disableGutters: S = !1,
|
|
456
456
|
expanded: $,
|
|
457
|
-
onChange:
|
|
457
|
+
onChange: v,
|
|
458
458
|
square: A = !1,
|
|
459
459
|
slots: j = {},
|
|
460
460
|
slotProps: z = {},
|
|
@@ -467,8 +467,8 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
467
467
|
name: "Accordion",
|
|
468
468
|
state: "expanded"
|
|
469
469
|
}), d = l.useCallback((eo) => {
|
|
470
|
-
m(!c),
|
|
471
|
-
}, [c,
|
|
470
|
+
m(!c), v && v(eo, !c);
|
|
471
|
+
}, [c, v, m]), [N, ...G] = l.Children.toArray(p), E = l.useMemo(() => ({
|
|
472
472
|
expanded: c,
|
|
473
473
|
disabled: f,
|
|
474
474
|
disableGutters: S,
|
|
@@ -526,7 +526,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
526
526
|
children: [/* @__PURE__ */ s.jsx(M, {
|
|
527
527
|
...V,
|
|
528
528
|
children: /* @__PURE__ */ s.jsx(to.Provider, {
|
|
529
|
-
value:
|
|
529
|
+
value: E,
|
|
530
530
|
children: N
|
|
531
531
|
})
|
|
532
532
|
}), /* @__PURE__ */ s.jsx(Z, {
|
|
@@ -780,7 +780,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
780
780
|
focusVisibleClassName: f,
|
|
781
781
|
onClick: S,
|
|
782
782
|
slots: $,
|
|
783
|
-
slotProps:
|
|
783
|
+
slotProps: v,
|
|
784
784
|
...A
|
|
785
785
|
} = i, {
|
|
786
786
|
disabled: j = !1,
|
|
@@ -796,7 +796,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
796
796
|
disableGutters: z
|
|
797
797
|
}, m = Ho(c), d = {
|
|
798
798
|
slots: $,
|
|
799
|
-
slotProps:
|
|
799
|
+
slotProps: v
|
|
800
800
|
}, [N, G] = I("root", {
|
|
801
801
|
ref: r,
|
|
802
802
|
shouldForwardComponentProp: !0,
|
|
@@ -821,7 +821,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
821
821
|
(C = a.onClick) == null || C.call(a, g), k(g);
|
|
822
822
|
}
|
|
823
823
|
})
|
|
824
|
-
}), [
|
|
824
|
+
}), [E, u] = I("content", {
|
|
825
825
|
className: m.content,
|
|
826
826
|
elementType: Lo,
|
|
827
827
|
externalForwardedProps: d,
|
|
@@ -834,7 +834,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
834
834
|
});
|
|
835
835
|
return /* @__PURE__ */ s.jsxs(N, {
|
|
836
836
|
...G,
|
|
837
|
-
children: [/* @__PURE__ */ s.jsx(
|
|
837
|
+
children: [/* @__PURE__ */ s.jsx(E, {
|
|
838
838
|
...u,
|
|
839
839
|
children: p
|
|
840
840
|
}), b && /* @__PURE__ */ s.jsx(w, {
|
|
@@ -908,6 +908,7 @@ const ne = ({ title: e, children: t, startIcon: r, defaultExpanded: i = !1 }) =>
|
|
|
908
908
|
borderRadius: 1,
|
|
909
909
|
border: "1px solid var(--s-palette-divider) !important"
|
|
910
910
|
},
|
|
911
|
+
elevation: 0,
|
|
911
912
|
children: [
|
|
912
913
|
/* @__PURE__ */ s.jsx(ao, { expandIcon: /* @__PURE__ */ s.jsx(jo, {}), children: /* @__PURE__ */ s.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
913
914
|
r && /* @__PURE__ */ s.jsx("span", { children: r }),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export interface SChatMessageProps extends Omit<BoxProps, 'children'> {
|
|
4
|
+
message: string;
|
|
5
|
+
variant?: 'sent' | 'received';
|
|
6
|
+
timestamp?: string | Date;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
senderName?: string;
|
|
9
|
+
showAvatar?: boolean;
|
|
10
|
+
showTimestamp?: boolean;
|
|
11
|
+
maxWidth?: string | number;
|
|
12
|
+
}
|
|
13
|
+
declare const SChatMessage: React.FC<SChatMessageProps>;
|
|
14
|
+
export default SChatMessage;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { Box as a, Typography as n } from "@mui/material";
|
|
3
|
+
import x from "../s-avatar/s-avatar.js";
|
|
4
|
+
const b = ({
|
|
5
|
+
message: d,
|
|
6
|
+
variant: p = "received",
|
|
7
|
+
timestamp: o,
|
|
8
|
+
avatar: s,
|
|
9
|
+
senderName: t,
|
|
10
|
+
showAvatar: l = !0,
|
|
11
|
+
showTimestamp: m = !1,
|
|
12
|
+
maxWidth: c = "70%",
|
|
13
|
+
sx: f,
|
|
14
|
+
...g
|
|
15
|
+
}) => {
|
|
16
|
+
const e = p === "sent", y = (i) => (typeof i == "string" ? new Date(i) : i).toLocaleTimeString("en-US", {
|
|
17
|
+
hour: "2-digit",
|
|
18
|
+
minute: "2-digit",
|
|
19
|
+
hour12: !0
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ r.jsxs(
|
|
22
|
+
a,
|
|
23
|
+
{
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexDirection: e ? "row-reverse" : "row",
|
|
26
|
+
alignItems: "flex-start",
|
|
27
|
+
gap: 1,
|
|
28
|
+
mb: 1,
|
|
29
|
+
sx: {
|
|
30
|
+
maxWidth: c,
|
|
31
|
+
alignSelf: e ? "flex-end" : "flex-start",
|
|
32
|
+
...f
|
|
33
|
+
},
|
|
34
|
+
...g,
|
|
35
|
+
children: [
|
|
36
|
+
l && !e && /* @__PURE__ */ r.jsx(x, { avatar: s, name: t, size: 36 }),
|
|
37
|
+
/* @__PURE__ */ r.jsxs(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
alignItems: e ? "flex-end" : "flex-start",
|
|
43
|
+
gap: 0.5,
|
|
44
|
+
sx: { minWidth: 0 },
|
|
45
|
+
children: [
|
|
46
|
+
t && !e && /* @__PURE__ */ r.jsx(
|
|
47
|
+
n,
|
|
48
|
+
{
|
|
49
|
+
variant: "caption",
|
|
50
|
+
sx: {
|
|
51
|
+
color: "text.secondary",
|
|
52
|
+
fontSize: "0.75rem",
|
|
53
|
+
fontWeight: 500,
|
|
54
|
+
ml: 0.5
|
|
55
|
+
},
|
|
56
|
+
children: t
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ r.jsx(
|
|
60
|
+
a,
|
|
61
|
+
{
|
|
62
|
+
sx: {
|
|
63
|
+
display: "inline-block",
|
|
64
|
+
px: 2,
|
|
65
|
+
py: 1.5,
|
|
66
|
+
borderRadius: 2,
|
|
67
|
+
wordBreak: "break-word",
|
|
68
|
+
maxWidth: "100%",
|
|
69
|
+
backgroundColor: e ? "primary.main" : "",
|
|
70
|
+
color: e ? "primary.contrastText" : "text.primary",
|
|
71
|
+
border: e ? "none" : "1px solid var(--s-palette-divider)",
|
|
72
|
+
...e && {
|
|
73
|
+
background: "linear-gradient(135deg, var(--s-palette-primary-main) 0%, var(--s-palette-primary-dark) 100%)"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
children: /* @__PURE__ */ r.jsx(
|
|
77
|
+
n,
|
|
78
|
+
{
|
|
79
|
+
variant: "body2",
|
|
80
|
+
sx: {
|
|
81
|
+
fontSize: "0.875rem",
|
|
82
|
+
lineHeight: 1.4,
|
|
83
|
+
whiteSpace: "pre-wrap"
|
|
84
|
+
},
|
|
85
|
+
children: d
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
m && o && /* @__PURE__ */ r.jsx(
|
|
91
|
+
n,
|
|
92
|
+
{
|
|
93
|
+
variant: "caption",
|
|
94
|
+
sx: {
|
|
95
|
+
color: "text.secondary",
|
|
96
|
+
fontSize: "0.7rem",
|
|
97
|
+
ml: e ? 0 : 0.5,
|
|
98
|
+
mr: e ? 0.5 : 0
|
|
99
|
+
},
|
|
100
|
+
children: y(o)
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
l && e && /* @__PURE__ */ r.jsx(x, { avatar: s, name: t, size: 36 })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
export {
|
|
112
|
+
b as default
|
|
113
|
+
};
|