@solostylist/ui-kit 1.0.216 → 1.0.218
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/{ArrowUpward-O4lRvSII.js → ArrowUpward-BbQSKheQ.js} +2 -2
- package/dist/Box-BlmynALm.js +45 -0
- package/dist/{ButtonBase-1qqPHJym.js → ButtonBase-Bo6ysVGS.js} +283 -173
- package/dist/{ChevronLeft-CJ94-qgQ.js → ChevronLeft-rgSvkrT_.js} +2 -2
- package/dist/{ChevronRight-CK4Iv1Xx.js → ChevronRight-DHulYS1l.js} +2 -2
- package/dist/{Close-CSIi_IPN.js → Close-oXeOGTZb.js} +2 -2
- package/dist/Collapse-CnXmaDqT.js +260 -0
- package/dist/{ContentCopy-SAMH7bs7.js → ContentCopy-Bh_TA5Eo.js} +2 -2
- package/dist/{Download-BefdWd5q.js → Download-DMm8oiCF.js} +2 -2
- package/dist/{ExpandMore-DZANUF9W.js → ExpandMore-DsZNN1Eh.js} +2 -2
- package/dist/{Favorite-BwMGKQJf.js → Favorite-DIml4fHR.js} +2 -2
- package/dist/FormControl-DYkaP-oD.js +659 -0
- package/dist/InfoOutlined-CqXSSVWh.js +6 -0
- package/dist/LocalizationProvider-BdaUKqz3.js +111 -0
- package/dist/Menu-C-0KEauj.js +497 -0
- package/dist/MenuItem-DWivWkNb.js +220 -0
- package/dist/MenuList-5HOyYdgq.js +403 -0
- package/dist/Modal-C1VRVWBZ.js +1049 -0
- package/dist/{Paper-CI9lXZk-.js → Paper-BY4X6-u_.js} +32 -34
- package/dist/Stack-BQkLmLFp.js +157 -0
- package/dist/Typography-EsraKPZO.js +166 -0
- package/dist/UnfoldMoreRounded-pz7NMMy3.js +6 -0
- package/dist/assets/s-overlay-scrollbar.css +2 -2
- package/dist/autocomplete-qLj7AqcP.js +43 -0
- package/dist/{avatar-CKEYVp9W.js → avatar-BQf6phmU.js} +1 -1
- package/dist/buttonBaseClasses-BLZbMisL.js +13 -0
- package/dist/checkbox-DMsuLF8N.js +74 -0
- package/dist/checkboxClasses-DSyvUOsN.js +18 -0
- package/dist/{chunk-efA98nb6.js → chunk-C_CI6nMA.js} +1 -1
- package/dist/{clsx-BTH_sxEO.js → clsx-Bv8WXdlr.js} +4 -4
- package/dist/{createSimplePaletteValueFilter-D5kxdvJe.js → createSimplePaletteValueFilter-GHK52GLU.js} +1 -1
- package/dist/{createSvgIcon-BfZYaiXo.js → createSvgIcon-BdNZIlKS.js} +16 -16
- package/dist/{createTheme-hnicUJQa.js → createTheme-Bnw5w28O.js} +647 -568
- package/dist/defaultTheme-Bi3OTfLN.js +5 -0
- package/dist/formLabelClasses-Cv7W0Roi.js +18 -0
- package/dist/{generateUtilityClass-D4Rn9MbW.js → generateUtilityClass-tRYNDrlH.js} +1 -1
- package/dist/generateUtilityClasses-XrPHiTcM.js +10 -0
- package/dist/{iconButtonClasses-UNZ6hKTU.js → iconButtonClasses-9jjSQ9-U.js} +3 -3
- package/dist/inputAdornmentClasses-VKwluNTs.js +19 -0
- package/dist/memoTheme-QMocAblm.js +150 -0
- package/dist/{mergeSlotProps-CVIr4jSm.js → mergeSlotProps-DBBJwoun.js} +3 -6
- package/dist/{outlinedInputClasses-ClI9bkEy.js → outlinedInputClasses-Cz4pnn0X.js} +5 -10
- package/dist/{resolveProps-D6-j1wov.js → resolveProps-DrnBChYC.js} +3 -3
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-Coc1zFV6.js → s-accordion-DH_7P3Il.js} +186 -195
- package/dist/s-action-overlay/s-action-overlay.js +18 -14
- package/dist/s-autocomplete/s-autocomplete.d.ts +2 -0
- package/dist/s-autocomplete/s-autocomplete.js +12 -9
- package/dist/s-avatar/s-avatar.js +6 -4
- package/dist/s-blur-text/s-blur-text.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/{s-carousel-Btja2Hvn.js → s-carousel-DhUo-3W-.js} +2 -2
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DF3eBvRY.js → s-chat-input-DlEMhm6X.js} +41 -29
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-tzIfAqAc.js → s-chat-message-DeP8O6TO.js} +46 -42
- package/dist/s-checkbox/s-checkbox.js +26 -16
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/{s-chips-CMivbDg_.js → s-chips-BuAEBW1F.js} +16 -12
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-BrwHh2oS.js → s-code-block-DTzppazr.js} +1 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-Db-f_KOq.js → s-comment-message-C-7IZOqA.js} +18 -14
- package/dist/s-copyable-text/s-copyable-text.js +8 -9
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-BdEn2Nhf.js → s-data-table-xIW-BAS9.js} +209 -226
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.d.ts +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-CKSRNJ_A.js +634 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-qg0m55tj.js → s-datetime-picker-BlStwMie.js} +1091 -1072
- package/dist/s-dialog/s-dialog.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.js +4 -4
- package/dist/s-empty/s-empty.js +4 -2
- package/dist/s-error/s-error.js +4 -2
- package/dist/s-error-layout/s-error-layout.js +1 -2
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/{s-file-dropzone-BFTqdCaX.js → s-file-dropzone-COPp1HiT.js} +9 -9
- package/dist/s-file-icon/s-file-icon.js +16 -19
- package/dist/s-flex-box/s-flex-box.d.ts +10 -2
- package/dist/s-flex-box/s-flex-box.js +15 -5
- package/dist/s-glow-button/s-glow-button.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +4 -4
- package/dist/s-item-not-found/s-item-not-found.js +9 -7
- package/dist/s-label/index.js +1 -1
- package/dist/s-label/s-label.js +26 -2
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/{s-language-switcher-mD1mK1he.js → s-language-switcher-Cg3Gh8_i.js} +17 -16
- package/dist/s-lazy-image/s-lazy-image.js +4 -2
- package/dist/s-link/s-link.d.ts +1 -1
- package/dist/s-link/s-link.js +1 -1
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/{s-localization-provider-CIACI235.js → s-localization-provider-YCsec18c.js} +44 -62
- package/dist/s-moving-border/s-moving-border.d.ts +8 -0
- package/dist/s-moving-border/s-moving-border.js +26 -21
- package/dist/s-nav-item/s-nav-item.js +2 -2
- package/dist/s-nav-item/s-nav-items.js +5 -5
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-pagination/s-pagination.js +6 -4
- package/dist/s-pixel-reveal/s-pixel-reveal.js +1 -1
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-D29of4xC.js → s-review-D5_TicCf.js} +14 -10
- package/dist/s-scroll-to-top/s-scroll-to-top.js +4 -4
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-DH-t7jkk.js → s-select-ClL8bygg.js} +7 -7
- package/dist/s-select-list/s-select-list.js +2 -2
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-switch/s-switch.js +26 -16
- package/dist/s-tabs/s-tabs.js +6 -6
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-editor-toolbar-BnhPG9xv.js +2088 -0
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-UI_UjTUa.js → s-text-field-qps0aDNS.js} +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.js +5 -7
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-C0v-IOB-.js → s-theme-demo-BHyjzAU0.js} +80 -48
- package/dist/s-theme-provider/s-theme-provider.d.ts +3 -1
- package/dist/s-theme-provider/s-theme-provider.js +15 -15
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/{s-theme-switch-COBORL4a.js → s-theme-switch-D1FpcDj1.js} +2 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/{s-tip-BI58w2uh.js → s-tip-D6M91nev.js} +5 -5
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-KrLaAaBO.js → s-tool-bar-DOcT-lNr.js} +92 -91
- package/dist/s-two-pane-layout/s-two-pane-layout.js +3 -3
- package/dist/selectClasses-DvT1febA.js +22 -0
- package/dist/styled-BTDmdi4c.js +164 -0
- package/dist/{esm-BYRX9r8n.js → styled-engine-DOxAQ3qw.js} +2 -2
- package/dist/{svgIconClasses-BhRa1KyZ.js → svgIconClasses-D46YUMKp.js} +3 -3
- package/dist/{tabClasses-Duc8s_po.js → tabClasses-KqPlYv0c.js} +3 -4
- package/dist/theme/components/accordion-summary.d.ts +2 -2
- package/dist/theme/components/accordion-summary.js +1 -1
- package/dist/theme/components/accordion.d.ts +2 -2
- package/dist/theme/components/alert.js +1 -1
- package/dist/theme/components/autocomplete.d.ts +52 -5
- package/dist/theme/components/autocomplete.js +1 -18
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +30 -22
- package/dist/theme/components/card.js +2 -2
- package/dist/theme/components/checkbox.d.ts +1 -0
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +122 -124
- package/dist/theme/components/components.js +41 -39
- package/dist/theme/components/css-baseline.d.ts +9 -0
- package/dist/theme/components/css-baseline.js +7 -0
- package/dist/theme/components/form-label.d.ts +4 -1
- package/dist/theme/components/form-label.js +6 -4
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/icon-button.js +5 -5
- package/dist/theme/components/input-adornment.d.ts +4 -1012
- package/dist/theme/components/input-adornment.js +2 -2
- package/dist/theme/components/linear-progress.js +1 -1
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +2 -2
- package/dist/theme/components/list-item-button.d.ts +2 -2
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.d.ts +2 -2
- package/dist/theme/components/list-item.js +3 -3
- package/dist/theme/components/outlined-input.d.ts +31 -34
- package/dist/theme/components/outlined-input.js +16 -19
- package/dist/theme/components/pagination-item.d.ts +2 -2
- package/dist/theme/components/select.d.ts +20 -0
- package/dist/theme/components/select.js +21 -2
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/tab.d.ts +2 -2
- package/dist/theme/components/tab.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/tabs.d.ts +4 -4
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.d.ts +2 -2
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/components/tooltip.js +1 -0
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{theme-primitives-qhf0z_Er.js → theme-primitives-OrQ-xFJR.js} +19 -19
- package/dist/{toggle-button-sCvdUHdS.js → toggle-button-BgpxYWVw.js} +3 -3
- package/dist/{toggle-button-group-C_qpJa3z.js → toggle-button-group-l4hL1DLP.js} +4 -6
- package/dist/{typographyClasses-CBI3nZde.js → typographyClasses-CFf0OFiD.js} +4 -5
- package/dist/{useControlled-BQ6-yabk.js → useControlled-2-C6cXjG.js} +2 -5
- package/dist/useControlled-DXKqhylj.js +5 -0
- package/dist/{useEnhancedEffect-DcMMtOdE.js → useEnhancedEffect-Dsu5K7-Z.js} +1 -1
- package/dist/useFormControl-B4z6ONhx.js +18 -0
- package/dist/{useMobilePicker-C5bImMb9.js → useMobilePicker-ujH2nH2-.js} +8465 -8943
- package/dist/{useSlot-BfqKgBbE.js → useSlot-Dkc1Mj31.js} +37 -32
- package/dist/{useThemeProps-DtrsMbkY.js → useThemeProps-D4jtjo2I.js} +4 -4
- package/dist/utils/dayjs.js +1 -1
- package/dist/{utils-BqJ3HDtA.js → utils-CCnIUPad.js} +74 -58
- package/package.json +53 -53
- package/dist/Box-BQIZeo25.js +0 -46
- package/dist/Collapse-BUAO-GTT.js +0 -264
- package/dist/LocalizationProvider-C07_J3LH.js +0 -111
- package/dist/Menu-qKMfgdfr.js +0 -1664
- package/dist/MenuItem-DA2pGXuL.js +0 -214
- package/dist/Select-D-aLJXW9.js +0 -2552
- package/dist/Stack-BrIUVvqB.js +0 -158
- package/dist/Typography-Ci004UCT.js +0 -187
- package/dist/buttonBaseClasses-D1dQFqBk.js +0 -13
- package/dist/checkbox-CMvDozaV.js +0 -57
- package/dist/defaultTheme-CW25vqGj.js +0 -5
- package/dist/extendSxProp-0kulJXZl.js +0 -29
- package/dist/generateUtilityClasses-CX1nR7K3.js +0 -10
- package/dist/memoTheme-DiKnacj0.js +0 -154
- package/dist/s-date-picker-C-FOMdpa.js +0 -587
- package/dist/s-label-BYT4eG6o.js +0 -30
- package/dist/s-multi-select/index.d.ts +0 -2
- package/dist/s-multi-select/index.js +0 -2
- package/dist/s-multi-select/s-multi-select.d.ts +0 -26
- package/dist/s-multi-select/s-multi-select.js +0 -2
- package/dist/s-multi-select-CmB-l3n5.js +0 -64
- package/dist/s-text-editor-toolbar-Sw0qn88u.js +0 -177
- package/dist/select-BT9USOXL.js +0 -11
- package/dist/styled-C0_N3zFx.js +0 -168
- package/dist/theme/components/tooltip.d.ts +0 -30
- package/dist/useFormControl-DvExOQVA.js +0 -11
- /package/dist/{extends-DtvfmDTb.js → extends-D8CDMpIy.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-Cq334jkZ.js → objectWithoutPropertiesLoose-BpY-kC5L.js} +0 -0
- /package/dist/{utils-CKGB5_56.js → utils-B5Rl6Zwv.js} +0 -0
|
@@ -3,20 +3,23 @@ import { forwardRef as t, useId as n } from "react";
|
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { Autocomplete as i, TextField as a } from "@mui/material";
|
|
5
5
|
//#region lib/s-autocomplete/s-autocomplete.tsx
|
|
6
|
-
var o = t(({ label: t = "",
|
|
7
|
-
let
|
|
6
|
+
var o = t(({ label: t = "", placeholder: o, required: s = !1, error: c, htmlFor: l, ...u }, d) => {
|
|
7
|
+
let f = n(), p = l ?? f;
|
|
8
8
|
return /* @__PURE__ */ r(e, {
|
|
9
|
-
error:
|
|
9
|
+
error: c,
|
|
10
10
|
label: t,
|
|
11
|
-
required:
|
|
12
|
-
htmlFor:
|
|
11
|
+
required: s,
|
|
12
|
+
htmlFor: p,
|
|
13
13
|
children: /* @__PURE__ */ r(i, {
|
|
14
14
|
disablePortal: !0,
|
|
15
15
|
fullWidth: !0,
|
|
16
|
-
renderInput: (e) => /* @__PURE__ */ r(a, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
renderInput: u.renderInput ?? ((e) => /* @__PURE__ */ r(a, {
|
|
17
|
+
...e,
|
|
18
|
+
placeholder: o
|
|
19
|
+
})),
|
|
20
|
+
id: p,
|
|
21
|
+
...u,
|
|
22
|
+
ref: d
|
|
20
23
|
})
|
|
21
24
|
});
|
|
22
25
|
});
|
|
@@ -3,9 +3,11 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
3
3
|
import { Avatar as r, Box as i, Typography as a } from "@mui/material";
|
|
4
4
|
//#region lib/s-avatar/s-avatar.tsx
|
|
5
5
|
var o = ({ avatar: o, name: s, showName: c = !1, size: l = 40, avatarProps: u, children: d }) => /* @__PURE__ */ n(i, {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
sx: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
gap: 2
|
|
10
|
+
},
|
|
9
11
|
children: [/* @__PURE__ */ t(r, {
|
|
10
12
|
sx: {
|
|
11
13
|
width: l,
|
|
@@ -23,7 +25,7 @@ var o = ({ avatar: o, name: s, showName: c = !1, size: l = 40, avatarProps: u, c
|
|
|
23
25
|
}) : s?.[0] ?? "A")
|
|
24
26
|
}), c && /* @__PURE__ */ t(a, {
|
|
25
27
|
variant: "body1",
|
|
26
|
-
fontSize: 20,
|
|
28
|
+
sx: { fontSize: 20 },
|
|
27
29
|
children: s
|
|
28
30
|
})]
|
|
29
31
|
});
|
|
@@ -13,7 +13,7 @@ function l(e, t) {
|
|
|
13
13
|
let n = t === "words" ? e.split(" ") : e.split(""), r = 0;
|
|
14
14
|
return n.map((e) => {
|
|
15
15
|
let n = `${t}-${r}-${e}`;
|
|
16
|
-
return r += e.length + (t === "words"
|
|
16
|
+
return r += e.length + +(t === "words"), {
|
|
17
17
|
key: n,
|
|
18
18
|
segment: e
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../ChevronRight-
|
|
1
|
+
import { t as e } from "../ChevronRight-DHulYS1l.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import { Breadcrumbs as r, Link as i, Typography as a } from "@mui/material";
|
package/dist/s-carousel/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-carousel-
|
|
1
|
+
import { t as e } from "../s-carousel-DhUo-3W-.js";
|
|
2
2
|
export { e as SCarousel, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-carousel-
|
|
1
|
+
import { t as e } from "../s-carousel-DhUo-3W-.js";
|
|
2
2
|
export { e as SCarousel, e as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-
|
|
1
|
+
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
2
|
import { SIconButton as t } from "./s-icon-button/s-icon-button.js";
|
|
3
3
|
import { Children as n, forwardRef as r, useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
4
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
import { Box as f, styled as p, useTheme as m } from "@mui/material";
|
|
6
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
6
|
+
//#region ../../node_modules/@mui/icons-material/ArrowBackIosNew.mjs
|
|
7
7
|
var h = e(/* @__PURE__ */ u("path", { d: "M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z" }), "ArrowBackIosNew"), g = e(/* @__PURE__ */ u("path", { d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z" }), "ArrowForwardIos"), _ = {
|
|
8
8
|
active: !0,
|
|
9
9
|
breakpoints: {},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-input-
|
|
1
|
+
import { t as e } from "../s-chat-input-DlEMhm6X.js";
|
|
2
2
|
export { e as SChatInput, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-input-
|
|
1
|
+
import { t as e } from "../s-chat-input-DlEMhm6X.js";
|
|
2
2
|
export { e as SChatInput, e as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-
|
|
2
|
-
import { t } from "./ArrowUpward-
|
|
3
|
-
import { t as n } from "./Close-
|
|
4
|
-
import { t as r } from "./s-text-field-
|
|
1
|
+
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
|
+
import { t } from "./ArrowUpward-BbQSKheQ.js";
|
|
3
|
+
import { t as n } from "./Close-oXeOGTZb.js";
|
|
4
|
+
import { t as r } from "./s-text-field-qps0aDNS.js";
|
|
5
5
|
import { SIconButton as i } from "./s-icon-button/s-icon-button.js";
|
|
6
6
|
import { SFileIcon as a } from "./s-file-icon/s-file-icon.js";
|
|
7
7
|
import { forwardRef as o, useEffect as s, useId as c, useState as l } from "react";
|
|
8
8
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
9
|
import { Box as p, ClickAwayListener as m, Popper as h, Typography as g, outlinedInputClasses as _ } from "@mui/material";
|
|
10
10
|
import v from "emoji-picker-react";
|
|
11
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
11
|
+
//#region ../../node_modules/@mui/icons-material/AttachFile.mjs
|
|
12
12
|
var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z" }), "AttachFile"), b = e(/* @__PURE__ */ d("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5" }), "EmojiEmotions"), x = o(({ onSubmit: e, onFileSelect: o, disabled: x, acceptedFileTypes: S, maxFileSize: C, hideEmojiPicker: w, hideFileAttachment: T, ...E }, D) => {
|
|
13
13
|
let [O, k] = l(""), [A, j] = l([]), [M, N] = l(/* @__PURE__ */ new Map()), [P, F] = l(!1), [I, L] = l(null), R = c(), z = (e) => e.type.startsWith("image/"), B = (e) => {
|
|
14
14
|
let t = `${e.name}-${e.size}-${e.lastModified}`;
|
|
@@ -43,10 +43,12 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
43
43
|
return s(() => () => {
|
|
44
44
|
M.forEach((e) => URL.revokeObjectURL(e));
|
|
45
45
|
}, [M]), /* @__PURE__ */ f(p, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
sx: {
|
|
47
|
+
border: "1px solid",
|
|
48
|
+
borderColor: "divider",
|
|
49
|
+
borderRadius: 2,
|
|
50
|
+
padding: "8px 12px"
|
|
51
|
+
},
|
|
50
52
|
children: [
|
|
51
53
|
/* @__PURE__ */ d(r, {
|
|
52
54
|
placeholder: "Enter your message here...",
|
|
@@ -74,14 +76,14 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
74
76
|
...E
|
|
75
77
|
}),
|
|
76
78
|
A.length > 0 && /* @__PURE__ */ d(p, {
|
|
77
|
-
mt: 1,
|
|
79
|
+
sx: { mt: 1 },
|
|
78
80
|
children: A.map((e, t) => {
|
|
79
81
|
let r = z(e), o = e.name.split(".").pop();
|
|
80
82
|
return /* @__PURE__ */ f(p, {
|
|
81
|
-
display: "flex",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
justifyContent: "space-between",
|
|
84
83
|
sx: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
justifyContent: "space-between",
|
|
85
87
|
bgcolor: "background.paper",
|
|
86
88
|
border: "1px solid",
|
|
87
89
|
borderColor: "divider",
|
|
@@ -90,9 +92,11 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
90
92
|
mb: .5
|
|
91
93
|
},
|
|
92
94
|
children: [/* @__PURE__ */ f(p, {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
sx: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
gap: 1
|
|
99
|
+
},
|
|
96
100
|
children: [r ? /* @__PURE__ */ d(p, {
|
|
97
101
|
component: "img",
|
|
98
102
|
src: B(e),
|
|
@@ -106,15 +110,19 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
106
110
|
borderColor: "divider"
|
|
107
111
|
}
|
|
108
112
|
}) : /* @__PURE__ */ d(a, { extension: o }), /* @__PURE__ */ f(p, {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
sx: {
|
|
114
|
+
display: "flex",
|
|
115
|
+
flexDirection: "row",
|
|
116
|
+
alignItems: "center",
|
|
117
|
+
gap: 1
|
|
118
|
+
},
|
|
113
119
|
children: [/* @__PURE__ */ d(g, {
|
|
114
120
|
variant: "subtitle2",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
sx: {
|
|
122
|
+
textOverflow: "ellipsis",
|
|
123
|
+
overflow: "hidden",
|
|
124
|
+
whiteSpace: "nowrap"
|
|
125
|
+
},
|
|
118
126
|
children: e.name
|
|
119
127
|
}), /* @__PURE__ */ d("div", { children: /* @__PURE__ */ f(g, {
|
|
120
128
|
variant: "caption",
|
|
@@ -137,13 +145,17 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
|
|
|
137
145
|
})
|
|
138
146
|
}),
|
|
139
147
|
/* @__PURE__ */ f(p, {
|
|
140
|
-
|
|
141
|
-
justifyContent: "space-between",
|
|
142
|
-
alignItems: "center",
|
|
143
|
-
mt: 1,
|
|
144
|
-
children: [/* @__PURE__ */ f(p, {
|
|
148
|
+
sx: {
|
|
145
149
|
display: "flex",
|
|
146
|
-
|
|
150
|
+
justifyContent: "space-between",
|
|
151
|
+
alignItems: "center",
|
|
152
|
+
mt: 1
|
|
153
|
+
},
|
|
154
|
+
children: [/* @__PURE__ */ f(p, {
|
|
155
|
+
sx: {
|
|
156
|
+
display: "flex",
|
|
157
|
+
gap: 1
|
|
158
|
+
},
|
|
147
159
|
children: [!T && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("input", {
|
|
148
160
|
type: "file",
|
|
149
161
|
multiple: !0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-message-
|
|
1
|
+
import { t as e } from "../s-chat-message-DeP8O6TO.js";
|
|
2
2
|
export { e as SChatMessage, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chat-message-
|
|
1
|
+
import { t as e } from "../s-chat-message-DeP8O6TO.js";
|
|
2
2
|
export { e as SChatMessage, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, r as t } from "./utils-
|
|
2
|
-
import { t as n } from "./createSvgIcon-
|
|
3
|
-
import { t as r } from "./Download-
|
|
1
|
+
import { n as e, r as t } from "./utils-B5Rl6Zwv.js";
|
|
2
|
+
import { t as n } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
+
import { t as r } from "./Download-DMm8oiCF.js";
|
|
4
4
|
import i from "./s-lazy-image/s-lazy-image.js";
|
|
5
5
|
import { SSkeleton as a } from "./s-skeleton/s-skeleton.js";
|
|
6
6
|
import { SAvatar as o } from "./s-avatar/s-avatar.js";
|
|
@@ -8,19 +8,18 @@ import { SImageModal as s } from "./s-image-modal/s-image-modal.js";
|
|
|
8
8
|
import { useState as c } from "react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { Box as d, IconButton as f, Paper as p, Typography as m } from "@mui/material";
|
|
11
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
12
|
-
var h = n(/* @__PURE__ */ l("path", { d: "
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: e ? "row-reverse" : "row",
|
|
15
|
-
alignItems: "flex-start",
|
|
16
|
-
gap: 1,
|
|
17
|
-
mb: 1,
|
|
18
|
-
sx: {
|
|
19
|
-
maxWidth: i,
|
|
20
|
-
alignSelf: e ? "flex-end" : "flex-start",
|
|
21
|
-
...o
|
|
22
|
-
},
|
|
11
|
+
//#region ../../node_modules/@mui/icons-material/ErrorOutlined.mjs
|
|
12
|
+
var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z" }), "ErrorOutlined"), g = n(/* @__PURE__ */ l("path", { d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z" }), "InsertDriveFile"), _ = n(/* @__PURE__ */ l("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z" }), "Refresh"), v = ({ isSent: e, showAvatar: t, showTimestamp: n, senderName: r, maxWidth: i, sx: o, ...s }) => /* @__PURE__ */ u(d, {
|
|
23
13
|
...s,
|
|
14
|
+
sx: [{
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: e ? "row-reverse" : "row",
|
|
17
|
+
alignItems: "flex-start",
|
|
18
|
+
gap: 1,
|
|
19
|
+
mb: 1,
|
|
20
|
+
maxWidth: i,
|
|
21
|
+
alignSelf: e ? "flex-end" : "flex-start"
|
|
22
|
+
}, ...Array.isArray(o) ? o : [o]],
|
|
24
23
|
children: [
|
|
25
24
|
t && !e && /* @__PURE__ */ l(a, {
|
|
26
25
|
component: "rounded-avatar",
|
|
@@ -28,11 +27,13 @@ var h = n(/* @__PURE__ */ l("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47
|
|
|
28
27
|
height: 36
|
|
29
28
|
}),
|
|
30
29
|
/* @__PURE__ */ u(d, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
sx: {
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
alignItems: e ? "flex-end" : "flex-start",
|
|
34
|
+
gap: .5,
|
|
35
|
+
minWidth: 0
|
|
36
|
+
},
|
|
36
37
|
children: [
|
|
37
38
|
r && !e && /* @__PURE__ */ l(a, {
|
|
38
39
|
width: 100,
|
|
@@ -94,17 +95,16 @@ var h = n(/* @__PURE__ */ l("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47
|
|
|
94
95
|
sx: M,
|
|
95
96
|
...N
|
|
96
97
|
}) : /* @__PURE__ */ u(d, {
|
|
97
|
-
display: "flex",
|
|
98
|
-
flexDirection: R ? "row-reverse" : "row",
|
|
99
|
-
alignItems: "flex-start",
|
|
100
|
-
gap: 1,
|
|
101
|
-
mb: 1,
|
|
102
|
-
sx: {
|
|
103
|
-
maxWidth: w,
|
|
104
|
-
alignSelf: R ? "flex-end" : "flex-start",
|
|
105
|
-
...M
|
|
106
|
-
},
|
|
107
98
|
...N,
|
|
99
|
+
sx: [{
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexDirection: R ? "row-reverse" : "row",
|
|
102
|
+
alignItems: "flex-start",
|
|
103
|
+
gap: 1,
|
|
104
|
+
mb: 1,
|
|
105
|
+
maxWidth: w,
|
|
106
|
+
alignSelf: R ? "flex-end" : "flex-start"
|
|
107
|
+
}, ...Array.isArray(M) ? M : [M]],
|
|
108
108
|
children: [
|
|
109
109
|
S && !R && /* @__PURE__ */ l(o, {
|
|
110
110
|
avatar: b,
|
|
@@ -112,11 +112,13 @@ var h = n(/* @__PURE__ */ l("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47
|
|
|
112
112
|
size: 36
|
|
113
113
|
}),
|
|
114
114
|
/* @__PURE__ */ u(d, {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
sx: {
|
|
116
|
+
display: "flex",
|
|
117
|
+
flexDirection: "column",
|
|
118
|
+
alignItems: R ? "flex-end" : "flex-start",
|
|
119
|
+
gap: .5,
|
|
120
|
+
minWidth: 0
|
|
121
|
+
},
|
|
120
122
|
children: [
|
|
121
123
|
x && !R && /* @__PURE__ */ l(m, { children: x }),
|
|
122
124
|
/* @__PURE__ */ u(d, {
|
|
@@ -133,12 +135,12 @@ var h = n(/* @__PURE__ */ l("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47
|
|
|
133
135
|
children: [
|
|
134
136
|
V.length > 0 && /* @__PURE__ */ l(d, {
|
|
135
137
|
sx: {
|
|
138
|
+
minWidth: 200,
|
|
136
139
|
display: "grid",
|
|
137
140
|
gridTemplateColumns: V.length === 1 ? "1fr" : "repeat(2, 1fr)",
|
|
138
141
|
gap: .5,
|
|
139
142
|
p: .5
|
|
140
143
|
},
|
|
141
|
-
minWidth: 200,
|
|
142
144
|
children: V.map((e) => /* @__PURE__ */ l(d, {
|
|
143
145
|
sx: {
|
|
144
146
|
position: "relative",
|
|
@@ -170,7 +172,7 @@ var h = n(/* @__PURE__ */ l("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47
|
|
|
170
172
|
alignItems: "center",
|
|
171
173
|
gap: 1.5,
|
|
172
174
|
p: 1,
|
|
173
|
-
mt: n > 0
|
|
175
|
+
mt: +(n > 0),
|
|
174
176
|
cursor: "pointer"
|
|
175
177
|
},
|
|
176
178
|
onClick: () => B(t),
|
|
@@ -228,14 +230,16 @@ var h = n(/* @__PURE__ */ l("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47
|
|
|
228
230
|
children: t(y)
|
|
229
231
|
}),
|
|
230
232
|
O && /* @__PURE__ */ u(d, {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
sx: {
|
|
234
|
+
display: "flex",
|
|
235
|
+
alignItems: "center",
|
|
236
|
+
gap: .5,
|
|
237
|
+
color: "error.main"
|
|
238
|
+
},
|
|
235
239
|
children: [
|
|
236
240
|
/* @__PURE__ */ l(h, { sx: { fontSize: "1rem" } }),
|
|
237
241
|
/* @__PURE__ */ l(m, {
|
|
238
|
-
color: "inherit",
|
|
242
|
+
sx: { color: "inherit" },
|
|
239
243
|
children: k
|
|
240
244
|
}),
|
|
241
245
|
A && /* @__PURE__ */ l(f, {
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
import { forwardRef as e, useId as t } from "react";
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { Box as i, Checkbox as a, Stack as o, Typography as s } from "@mui/material";
|
|
4
4
|
//#region lib/s-checkbox/s-checkbox.tsx
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var c = e(({ content: e, disabled: c, ...l }, u) => {
|
|
6
|
+
let d = t(), f = l.id ?? d, p = {
|
|
7
|
+
color: c ? "text.disabled" : "inherit",
|
|
8
|
+
cursor: c ? "not-allowed" : "pointer"
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ r(o, {
|
|
9
11
|
direction: "row",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
sx: {
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
display: "flex",
|
|
15
|
+
justifyContent: "start"
|
|
16
|
+
},
|
|
17
|
+
children: [/* @__PURE__ */ n(a, {
|
|
18
|
+
ref: u,
|
|
19
|
+
...l,
|
|
20
|
+
disabled: c,
|
|
21
|
+
id: f
|
|
16
22
|
}), e && /* @__PURE__ */ n("label", {
|
|
17
|
-
htmlFor:
|
|
18
|
-
children: /* @__PURE__ */ n(
|
|
19
|
-
|
|
23
|
+
htmlFor: f,
|
|
24
|
+
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ n(s, {
|
|
25
|
+
sx: p,
|
|
26
|
+
children: e
|
|
27
|
+
}) : /* @__PURE__ */ n(i, {
|
|
28
|
+
component: "span",
|
|
29
|
+
sx: p,
|
|
20
30
|
children: e
|
|
21
31
|
})
|
|
22
32
|
})]
|
|
23
33
|
});
|
|
24
34
|
});
|
|
25
|
-
|
|
35
|
+
c.displayName = "SCheckbox";
|
|
26
36
|
//#endregion
|
|
27
|
-
export {
|
|
37
|
+
export { c as SCheckbox, c as default };
|
package/dist/s-chips/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chips-
|
|
1
|
+
import { t as e } from "../s-chips-BuAEBW1F.js";
|
|
2
2
|
export { e as SChips, e as default };
|
package/dist/s-chips/s-chips.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-chips-
|
|
1
|
+
import { t as e } from "../s-chips-BuAEBW1F.js";
|
|
2
2
|
export { e as SChips, e as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./createSvgIcon-
|
|
1
|
+
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
2
|
import { useCallback as t, useEffect as n, useRef as r, useState as i } from "react";
|
|
3
3
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
import { Box as s, Chip as c, Tooltip as l } from "@mui/material";
|
|
5
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
5
|
+
//#region ../../node_modules/@mui/icons-material/Done.mjs
|
|
6
6
|
var u = e(/* @__PURE__ */ a("path", { d: "M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" }), "Done"), d = ({ chips: e, overflow: d = !0, onClick: f, overflowText: p = "keywords", color: m = "primary", variant: h = "filled", size: g = "medium", gap: _ = 8, selectedChips: v, onSelectionChange: y }) => {
|
|
7
7
|
let b = r(null), [x, S] = i([]), [C, w] = i([]), [T, E] = i(0), D = (e) => {
|
|
8
8
|
y && v !== void 0 && y(v.includes(e) ? v.filter((t) => t !== e) : [...v, e]), f?.(e);
|
|
@@ -45,11 +45,13 @@ var u = e(/* @__PURE__ */ a("path", { d: "M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4
|
|
|
45
45
|
} : {};
|
|
46
46
|
return /* @__PURE__ */ o(s, {
|
|
47
47
|
ref: b,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
sx: [{
|
|
49
|
+
display: "flex",
|
|
50
|
+
maxWidth: "100%",
|
|
51
|
+
flexWrap: d ? "nowrap" : "wrap",
|
|
52
|
+
gap: `${_}px`,
|
|
53
|
+
...j
|
|
54
|
+
}],
|
|
53
55
|
children: [(d ? x : e).map((e) => {
|
|
54
56
|
let t = v?.includes(e) ?? !1;
|
|
55
57
|
return /* @__PURE__ */ a(c, {
|
|
@@ -66,10 +68,12 @@ var u = e(/* @__PURE__ */ a("path", { d: "M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4
|
|
|
66
68
|
arrow: !0,
|
|
67
69
|
placement: "top",
|
|
68
70
|
title: /* @__PURE__ */ a(s, {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
sx: {
|
|
72
|
+
display: "flex",
|
|
73
|
+
gap: 1,
|
|
74
|
+
maxWidth: "240px",
|
|
75
|
+
flexWrap: "wrap"
|
|
76
|
+
},
|
|
73
77
|
children: C.map((e) => /* @__PURE__ */ a(c, {
|
|
74
78
|
label: e.trim(),
|
|
75
79
|
color: m,
|
|
@@ -80,7 +84,7 @@ var u = e(/* @__PURE__ */ a("path", { d: "M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4
|
|
|
80
84
|
children: /* @__PURE__ */ a(c, {
|
|
81
85
|
label: `+${T} ${p}`,
|
|
82
86
|
variant: "outlined",
|
|
83
|
-
color:
|
|
87
|
+
color: m,
|
|
84
88
|
size: g,
|
|
85
89
|
sx: {
|
|
86
90
|
userSelect: "none",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-code-block-
|
|
1
|
+
import { t as e } from "../s-code-block-DTzppazr.js";
|
|
2
2
|
export { e as SCodeBlock, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-code-block-
|
|
1
|
+
import { t as e } from "../s-code-block-DTzppazr.js";
|
|
2
2
|
export { e as SCodeBlock, e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./ContentCopy-
|
|
1
|
+
import { n as e, t } from "./ContentCopy-Bh_TA5Eo.js";
|
|
2
2
|
import { useState as n } from "react";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { Box as a, IconButton as o, useColorScheme as s } from "@mui/material";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-comment-message-
|
|
1
|
+
import { t as e } from "../s-comment-message-C-7IZOqA.js";
|
|
2
2
|
export { e as SCommentMessage, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-comment-message-
|
|
1
|
+
import { t as e } from "../s-comment-message-C-7IZOqA.js";
|
|
2
2
|
export { e as SCommentMessage, e as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { i as e } from "./utils-
|
|
2
|
-
import { t } from "./createSvgIcon-
|
|
3
|
-
import { t as n } from "./ExpandMore-
|
|
4
|
-
import { t as r } from "./Favorite-
|
|
1
|
+
import { i as e } from "./utils-B5Rl6Zwv.js";
|
|
2
|
+
import { t } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
+
import { t as n } from "./ExpandMore-DsZNN1Eh.js";
|
|
4
|
+
import { t as r } from "./Favorite-DIml4fHR.js";
|
|
5
5
|
import { SSkeleton as i } from "./s-skeleton/s-skeleton.js";
|
|
6
6
|
import { SAvatar as a } from "./s-avatar/s-avatar.js";
|
|
7
7
|
import { useEffect as o, useId as s, useState as c } from "react";
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import { Box as d, Button as f, Collapse as p, IconButton as m, Stack as h, Typography as g } from "@mui/material";
|
|
10
|
-
//#region ../../node_modules/@mui/icons-material/
|
|
10
|
+
//#region ../../node_modules/@mui/icons-material/ExpandLess.mjs
|
|
11
11
|
var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" }), "ExpandLess"), v = t(/* @__PURE__ */ l("path", { d: "M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3m-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05" }), "FavoriteBorder"), y = t(/* @__PURE__ */ l("path", { d: "M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11" }), "Reply"), b = ({ id: t, userName: x, userAvatar: S, commentContent: C, datetime: w, likes: T = 0, isLiked: E = !1, replies: D = [], totalReplies: O, onLike: k, onReply: A, onToggleReplies: j, showReplies: M = !0, avatarSize: N = 48, level: P = 0, maxLevel: F = 3, loading: I = !1, children: L, sx: R = {} }) => {
|
|
12
12
|
let z = s(), B = t ?? z, [V, H] = c(T), [U, W] = c(E), [G, K] = c(!1), q = () => {
|
|
13
13
|
U ? (H((e) => Math.max(0, e - 1)), W(!1)) : (H((e) => e + 1), W(!0)), k && k(B);
|
|
@@ -29,7 +29,7 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
|
|
|
29
29
|
children: /* @__PURE__ */ u(h, {
|
|
30
30
|
direction: "row",
|
|
31
31
|
spacing: 2,
|
|
32
|
-
alignItems: "flex-start",
|
|
32
|
+
sx: { alignItems: "flex-start" },
|
|
33
33
|
children: [/* @__PURE__ */ l(i, {
|
|
34
34
|
component: "rounded-avatar",
|
|
35
35
|
width: N,
|
|
@@ -39,9 +39,11 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
|
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ u(h, {
|
|
41
41
|
direction: "row",
|
|
42
|
-
alignItems: "center",
|
|
43
42
|
spacing: 2,
|
|
44
|
-
|
|
43
|
+
sx: {
|
|
44
|
+
alignItems: "center",
|
|
45
|
+
mb: 1
|
|
46
|
+
},
|
|
45
47
|
children: [/* @__PURE__ */ l(i, {
|
|
46
48
|
width: 120,
|
|
47
49
|
height: 20
|
|
@@ -67,7 +69,7 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
|
|
|
67
69
|
/* @__PURE__ */ u(h, {
|
|
68
70
|
direction: "row",
|
|
69
71
|
spacing: 1,
|
|
70
|
-
alignItems: "center",
|
|
72
|
+
sx: { alignItems: "center" },
|
|
71
73
|
children: [
|
|
72
74
|
/* @__PURE__ */ l(i, { component: "icon-button" }),
|
|
73
75
|
/* @__PURE__ */ l(i, {
|
|
@@ -90,7 +92,7 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
|
|
|
90
92
|
children: [/* @__PURE__ */ u(h, {
|
|
91
93
|
direction: "row",
|
|
92
94
|
spacing: 2,
|
|
93
|
-
alignItems: "flex-start",
|
|
95
|
+
sx: { alignItems: "flex-start" },
|
|
94
96
|
children: [/* @__PURE__ */ l(a, {
|
|
95
97
|
avatar: S,
|
|
96
98
|
name: x,
|
|
@@ -100,12 +102,14 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
|
|
|
100
102
|
children: [
|
|
101
103
|
/* @__PURE__ */ u(h, {
|
|
102
104
|
direction: "row",
|
|
103
|
-
alignItems: "center",
|
|
104
105
|
spacing: 2,
|
|
105
|
-
|
|
106
|
+
sx: {
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
mb: 1
|
|
109
|
+
},
|
|
106
110
|
children: [/* @__PURE__ */ l(g, {
|
|
107
111
|
variant: "subtitle2",
|
|
108
|
-
fontWeight: "600",
|
|
112
|
+
sx: { fontWeight: "600" },
|
|
109
113
|
children: x
|
|
110
114
|
}), /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(g, {
|
|
111
115
|
variant: "caption",
|
|
@@ -123,7 +127,7 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
|
|
|
123
127
|
/* @__PURE__ */ u(h, {
|
|
124
128
|
direction: "row",
|
|
125
129
|
spacing: 1,
|
|
126
|
-
alignItems: "center",
|
|
130
|
+
sx: { alignItems: "center" },
|
|
127
131
|
children: [
|
|
128
132
|
/* @__PURE__ */ l(m, {
|
|
129
133
|
onClick: q,
|