@solostylist/ui-kit 1.0.174 → 1.0.176
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-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.d.ts +4 -0
- package/dist/s-chat-input/s-chat-input.js +103 -109
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/components.js +14 -12
- package/dist/theme/components/icon-button.d.ts +6191 -0
- package/dist/theme/components/icon-button.js +90 -0
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -1,79 +1,78 @@
|
|
|
1
|
-
import { j as e } from "../jsx-runtime-
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Box as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "../s-lazy-image/
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as k } from "react";
|
|
3
|
+
import { Box as r, Typography as t, Paper as P, IconButton as B } from "@mui/material";
|
|
4
|
+
import { SSkeleton as l } from "../s-skeleton/s-skeleton.js";
|
|
5
|
+
import { SAvatar as F } from "../s-avatar/s-avatar.js";
|
|
6
|
+
import G from "../s-lazy-image/s-lazy-image.js";
|
|
7
|
+
import { c as g } from "../createSvgIcon-BKymXuBG.js";
|
|
8
|
+
import { D as H } from "../Download-Chao5NQl.js";
|
|
9
|
+
import { SImageModal as K } from "../s-image-modal/s-image-modal.js";
|
|
10
|
+
const q = g(/* @__PURE__ */ e.jsx("path", {
|
|
12
11
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
|
|
13
|
-
}), "ErrorOutline"),
|
|
12
|
+
}), "ErrorOutline"), E = g(/* @__PURE__ */ e.jsx("path", {
|
|
14
13
|
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"
|
|
15
|
-
}), "InsertDriveFile"),
|
|
14
|
+
}), "InsertDriveFile"), J = g(/* @__PURE__ */ e.jsx("path", {
|
|
16
15
|
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"
|
|
17
|
-
}), "Refresh"),
|
|
18
|
-
message:
|
|
19
|
-
variant:
|
|
20
|
-
timestamp:
|
|
21
|
-
avatar:
|
|
22
|
-
senderName:
|
|
23
|
-
showAvatar:
|
|
24
|
-
showTimestamp:
|
|
25
|
-
maxWidth:
|
|
26
|
-
attachments:
|
|
27
|
-
onAttachmentClick:
|
|
28
|
-
onDownload:
|
|
29
|
-
hasError:
|
|
30
|
-
errorMessage:
|
|
31
|
-
onRetry:
|
|
32
|
-
loading:
|
|
33
|
-
sx:
|
|
34
|
-
...
|
|
16
|
+
}), "Refresh"), Q = ({
|
|
17
|
+
message: j,
|
|
18
|
+
variant: D = "received",
|
|
19
|
+
timestamp: u,
|
|
20
|
+
avatar: v,
|
|
21
|
+
senderName: o,
|
|
22
|
+
showAvatar: n = !0,
|
|
23
|
+
showTimestamp: I = !1,
|
|
24
|
+
maxWidth: S = "70%",
|
|
25
|
+
attachments: m = [],
|
|
26
|
+
onAttachmentClick: a,
|
|
27
|
+
onDownload: d,
|
|
28
|
+
hasError: x = !1,
|
|
29
|
+
errorMessage: W = "Failed to send message",
|
|
30
|
+
onRetry: w,
|
|
31
|
+
loading: L = !1,
|
|
32
|
+
sx: y,
|
|
33
|
+
...z
|
|
35
34
|
}) => {
|
|
36
|
-
const [c,
|
|
35
|
+
const [c, b] = k(null), [O, M] = k(!1), s = D === "sent", T = (i) => (typeof i == "string" ? new Date(i) : i).toLocaleTimeString("en-US", {
|
|
37
36
|
hour: "2-digit",
|
|
38
37
|
minute: "2-digit",
|
|
39
38
|
hour12: !0
|
|
40
|
-
}),
|
|
41
|
-
if (!
|
|
42
|
-
const
|
|
43
|
-
return Math.round(
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
return
|
|
50
|
-
|
|
39
|
+
}), R = (i) => {
|
|
40
|
+
if (!i) return "";
|
|
41
|
+
const p = ["Bytes", "KB", "MB", "GB"], f = Math.floor(Math.log(i) / Math.log(1024));
|
|
42
|
+
return Math.round(i / Math.pow(1024, f) * 100) / 100 + " " + p[f];
|
|
43
|
+
}, U = (i) => {
|
|
44
|
+
a ? a(i) : (b(i), M(!0));
|
|
45
|
+
}, V = (i) => {
|
|
46
|
+
a ? a(i) : d && d(i);
|
|
47
|
+
}, h = m.filter((i) => i.type === "image"), C = m.filter((i) => i.type === "file");
|
|
48
|
+
return L ? /* @__PURE__ */ e.jsxs(
|
|
49
|
+
r,
|
|
51
50
|
{
|
|
52
51
|
display: "flex",
|
|
53
|
-
flexDirection:
|
|
52
|
+
flexDirection: s ? "row-reverse" : "row",
|
|
54
53
|
alignItems: "flex-start",
|
|
55
54
|
gap: 1,
|
|
56
55
|
mb: 1,
|
|
57
56
|
sx: {
|
|
58
|
-
maxWidth:
|
|
59
|
-
alignSelf:
|
|
60
|
-
...
|
|
57
|
+
maxWidth: S,
|
|
58
|
+
alignSelf: s ? "flex-end" : "flex-start",
|
|
59
|
+
...y
|
|
61
60
|
},
|
|
62
|
-
...
|
|
61
|
+
...z,
|
|
63
62
|
children: [
|
|
64
|
-
|
|
63
|
+
n && !s && /* @__PURE__ */ e.jsx(l, { component: "rounded-avatar", width: 36, height: 36 }),
|
|
65
64
|
/* @__PURE__ */ e.jsxs(
|
|
66
|
-
|
|
65
|
+
r,
|
|
67
66
|
{
|
|
68
67
|
display: "flex",
|
|
69
68
|
flexDirection: "column",
|
|
70
|
-
alignItems:
|
|
69
|
+
alignItems: s ? "flex-end" : "flex-start",
|
|
71
70
|
gap: 0.5,
|
|
72
71
|
sx: { minWidth: 0 },
|
|
73
72
|
children: [
|
|
74
|
-
|
|
73
|
+
o && !s && /* @__PURE__ */ e.jsx(l, { variant: "text", width: 100, height: 12, sx: { ml: 0.5 } }),
|
|
75
74
|
/* @__PURE__ */ e.jsxs(
|
|
76
|
-
|
|
75
|
+
r,
|
|
77
76
|
{
|
|
78
77
|
sx: {
|
|
79
78
|
display: "inline-block",
|
|
@@ -83,47 +82,47 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
83
82
|
ml: 0.5
|
|
84
83
|
},
|
|
85
84
|
children: [
|
|
86
|
-
/* @__PURE__ */ e.jsx(
|
|
87
|
-
/* @__PURE__ */ e.jsx(
|
|
88
|
-
/* @__PURE__ */ e.jsx(
|
|
85
|
+
/* @__PURE__ */ e.jsx(l, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
|
|
86
|
+
/* @__PURE__ */ e.jsx(l, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
|
|
87
|
+
/* @__PURE__ */ e.jsx(l, { variant: "text", width: "70%", height: 16 })
|
|
89
88
|
]
|
|
90
89
|
}
|
|
91
90
|
),
|
|
92
|
-
|
|
91
|
+
I && /* @__PURE__ */ e.jsx(l, { variant: "text", width: 60, height: 10, sx: { ml: s ? 0 : 0.5, mr: s ? 0.5 : 0 } })
|
|
93
92
|
]
|
|
94
93
|
}
|
|
95
94
|
),
|
|
96
|
-
|
|
95
|
+
n && s && /* @__PURE__ */ e.jsx(l, { component: "rounded-avatar", width: 36, height: 36 })
|
|
97
96
|
]
|
|
98
97
|
}
|
|
99
98
|
) : /* @__PURE__ */ e.jsxs(
|
|
100
|
-
|
|
99
|
+
r,
|
|
101
100
|
{
|
|
102
101
|
display: "flex",
|
|
103
|
-
flexDirection:
|
|
102
|
+
flexDirection: s ? "row-reverse" : "row",
|
|
104
103
|
alignItems: "flex-start",
|
|
105
104
|
gap: 1,
|
|
106
105
|
mb: 1,
|
|
107
106
|
sx: {
|
|
108
|
-
maxWidth:
|
|
109
|
-
alignSelf:
|
|
110
|
-
...
|
|
107
|
+
maxWidth: S,
|
|
108
|
+
alignSelf: s ? "flex-end" : "flex-start",
|
|
109
|
+
...y
|
|
111
110
|
},
|
|
112
|
-
...
|
|
111
|
+
...z,
|
|
113
112
|
children: [
|
|
114
|
-
|
|
113
|
+
n && !s && /* @__PURE__ */ e.jsx(F, { avatar: v, name: o, size: 36 }),
|
|
115
114
|
/* @__PURE__ */ e.jsxs(
|
|
116
|
-
|
|
115
|
+
r,
|
|
117
116
|
{
|
|
118
117
|
display: "flex",
|
|
119
118
|
flexDirection: "column",
|
|
120
|
-
alignItems:
|
|
119
|
+
alignItems: s ? "flex-end" : "flex-start",
|
|
121
120
|
gap: 0.5,
|
|
122
121
|
sx: { minWidth: 0 },
|
|
123
122
|
children: [
|
|
124
|
-
|
|
123
|
+
o && !s && /* @__PURE__ */ e.jsx(t, { children: o }),
|
|
125
124
|
/* @__PURE__ */ e.jsxs(
|
|
126
|
-
|
|
125
|
+
r,
|
|
127
126
|
{
|
|
128
127
|
sx: {
|
|
129
128
|
display: "inline-block",
|
|
@@ -131,29 +130,29 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
131
130
|
wordBreak: "break-word",
|
|
132
131
|
maxWidth: "100%",
|
|
133
132
|
border: "1px solid",
|
|
134
|
-
borderColor:
|
|
135
|
-
...
|
|
133
|
+
borderColor: x ? "error.main" : "divider",
|
|
134
|
+
...x && {
|
|
136
135
|
opacity: 0.7
|
|
137
136
|
},
|
|
138
137
|
overflow: "hidden"
|
|
139
138
|
},
|
|
140
139
|
children: [
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
h.length > 0 && /* @__PURE__ */ e.jsx(
|
|
141
|
+
r,
|
|
143
142
|
{
|
|
144
143
|
sx: {
|
|
145
144
|
display: "grid",
|
|
146
|
-
gridTemplateColumns:
|
|
145
|
+
gridTemplateColumns: h.length === 1 ? "1fr" : "repeat(2, 1fr)",
|
|
147
146
|
gap: 0.5,
|
|
148
147
|
p: 0.5
|
|
149
148
|
},
|
|
150
149
|
minWidth: 200,
|
|
151
|
-
children:
|
|
152
|
-
|
|
150
|
+
children: h.map((i) => /* @__PURE__ */ e.jsx(
|
|
151
|
+
r,
|
|
153
152
|
{
|
|
154
153
|
sx: {
|
|
155
154
|
position: "relative",
|
|
156
|
-
paddingTop:
|
|
155
|
+
paddingTop: h.length === 1 ? "66.67%" : "100%",
|
|
157
156
|
cursor: "pointer",
|
|
158
157
|
borderRadius: 1.5,
|
|
159
158
|
overflow: "hidden",
|
|
@@ -161,12 +160,12 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
161
160
|
opacity: 0.9
|
|
162
161
|
}
|
|
163
162
|
},
|
|
164
|
-
onClick: () =>
|
|
163
|
+
onClick: () => U(i),
|
|
165
164
|
children: /* @__PURE__ */ e.jsx(
|
|
166
|
-
|
|
165
|
+
G,
|
|
167
166
|
{
|
|
168
|
-
src:
|
|
169
|
-
alt:
|
|
167
|
+
src: i.thumbnailUrl || i.url,
|
|
168
|
+
alt: i.name || "Image",
|
|
170
169
|
width: "100%",
|
|
171
170
|
height: "100%",
|
|
172
171
|
style: {
|
|
@@ -178,12 +177,12 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
178
177
|
}
|
|
179
178
|
)
|
|
180
179
|
},
|
|
181
|
-
|
|
180
|
+
i.id
|
|
182
181
|
))
|
|
183
182
|
}
|
|
184
183
|
),
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
C.length > 0 && /* @__PURE__ */ e.jsx(r, { sx: { p: 1.5 }, children: C.map((i, p) => /* @__PURE__ */ e.jsxs(
|
|
185
|
+
P,
|
|
187
186
|
{
|
|
188
187
|
variant: "outlined",
|
|
189
188
|
sx: {
|
|
@@ -191,15 +190,15 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
191
190
|
alignItems: "center",
|
|
192
191
|
gap: 1.5,
|
|
193
192
|
p: 1,
|
|
194
|
-
mt:
|
|
193
|
+
mt: p > 0 ? 1 : 0,
|
|
195
194
|
cursor: "pointer"
|
|
196
195
|
},
|
|
197
|
-
onClick: () =>
|
|
196
|
+
onClick: () => V(i),
|
|
198
197
|
children: [
|
|
199
|
-
/* @__PURE__ */ e.jsx(
|
|
200
|
-
/* @__PURE__ */ e.jsxs(
|
|
198
|
+
/* @__PURE__ */ e.jsx(E, { sx: { fontSize: 32 } }),
|
|
199
|
+
/* @__PURE__ */ e.jsxs(r, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
201
200
|
/* @__PURE__ */ e.jsx(
|
|
202
|
-
|
|
201
|
+
t,
|
|
203
202
|
{
|
|
204
203
|
variant: "body2",
|
|
205
204
|
sx: {
|
|
@@ -209,56 +208,56 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
209
208
|
textOverflow: "ellipsis",
|
|
210
209
|
whiteSpace: "nowrap"
|
|
211
210
|
},
|
|
212
|
-
children:
|
|
211
|
+
children: i.name || "Unnamed File"
|
|
213
212
|
}
|
|
214
213
|
),
|
|
215
|
-
|
|
214
|
+
i.size && /* @__PURE__ */ e.jsx(t, { variant: "caption", children: R(i.size) })
|
|
216
215
|
] }),
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
d && /* @__PURE__ */ e.jsx(
|
|
217
|
+
B,
|
|
219
218
|
{
|
|
220
219
|
size: "small",
|
|
221
220
|
onClick: (f) => {
|
|
222
|
-
f.stopPropagation(),
|
|
221
|
+
f.stopPropagation(), d(i);
|
|
223
222
|
},
|
|
224
|
-
children: /* @__PURE__ */ e.jsx(
|
|
223
|
+
children: /* @__PURE__ */ e.jsx(H, {})
|
|
225
224
|
}
|
|
226
225
|
)
|
|
227
226
|
]
|
|
228
227
|
},
|
|
229
|
-
|
|
228
|
+
i.id
|
|
230
229
|
)) }),
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
j && /* @__PURE__ */ e.jsx(r, { sx: { px: 2, py: 1.5, pt: m.length > 0 ? 0 : 1.5 }, children: /* @__PURE__ */ e.jsx(
|
|
231
|
+
t,
|
|
233
232
|
{
|
|
234
233
|
variant: "body2",
|
|
235
234
|
sx: {
|
|
236
235
|
fontSize: "0.875rem",
|
|
237
236
|
whiteSpace: "pre-wrap",
|
|
238
|
-
color:
|
|
237
|
+
color: x ? "error.main" : "inherit"
|
|
239
238
|
},
|
|
240
|
-
children:
|
|
239
|
+
children: j
|
|
241
240
|
}
|
|
242
241
|
) })
|
|
243
242
|
]
|
|
244
243
|
}
|
|
245
244
|
),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/* @__PURE__ */ e.jsx(
|
|
249
|
-
/* @__PURE__ */ e.jsx(
|
|
250
|
-
|
|
245
|
+
I && u && /* @__PURE__ */ e.jsx(t, { variant: "caption", children: T(u) }),
|
|
246
|
+
x && /* @__PURE__ */ e.jsxs(r, { display: "flex", alignItems: "center", gap: 0.5, color: "error.main", children: [
|
|
247
|
+
/* @__PURE__ */ e.jsx(q, { sx: { fontSize: "1rem" } }),
|
|
248
|
+
/* @__PURE__ */ e.jsx(t, { color: "inherit", children: W }),
|
|
249
|
+
w && /* @__PURE__ */ e.jsx(B, { size: "small", onClick: w, children: /* @__PURE__ */ e.jsx(J, {}) })
|
|
251
250
|
] })
|
|
252
251
|
]
|
|
253
252
|
}
|
|
254
253
|
),
|
|
255
|
-
|
|
254
|
+
n && s && /* @__PURE__ */ e.jsx(F, { avatar: v, name: o, size: 36 }),
|
|
256
255
|
c && /* @__PURE__ */ e.jsx(
|
|
257
|
-
|
|
256
|
+
K,
|
|
258
257
|
{
|
|
259
|
-
isOpen:
|
|
258
|
+
isOpen: O,
|
|
260
259
|
onClose: () => {
|
|
261
|
-
|
|
260
|
+
M(!1), b(null);
|
|
262
261
|
},
|
|
263
262
|
selectedItem: {
|
|
264
263
|
id: c.id,
|
|
@@ -274,16 +273,8 @@ const P = v(/* @__PURE__ */ e.jsx("path", {
|
|
|
274
273
|
}
|
|
275
274
|
);
|
|
276
275
|
};
|
|
277
|
-
|
|
278
|
-
try {
|
|
279
|
-
x.displayName = "SChatMessage", x.__docgenInfo = { description: "A comprehensive chat message component for conversation interfaces with support for text, images, and file attachments.", displayName: "SChatMessage", props: { message: { defaultValue: null, description: "The message content to display in the chat bubble", name: "message", required: !1, type: { name: "string" } }, variant: { defaultValue: { value: "received" }, description: "The message variant controlling alignment and styling", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"sent"' }, { value: '"received"' }] } }, timestamp: { defaultValue: null, description: "The timestamp for the message, displayed when showTimestamp is true", name: "timestamp", required: !1, type: { name: "string | Date" } }, avatar: { defaultValue: null, description: "Avatar image URL or base64 string to display next to the message", name: "avatar", required: !1, type: { name: "string" } }, senderName: { defaultValue: null, description: "Name of the message sender, displayed above received messages when provided", name: "senderName", required: !1, type: { name: "string" } }, showAvatar: { defaultValue: { value: "true" }, description: "Whether to display the avatar next to the message", name: "showAvatar", required: !1, type: { name: "boolean" } }, showTimestamp: { defaultValue: { value: "false" }, description: "Whether to display the formatted timestamp below the message", name: "showTimestamp", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "70%" }, description: "Maximum width of the message bubble container", name: "maxWidth", required: !1, type: { name: "string | number" } }, attachments: { defaultValue: { value: "[]" }, description: "Array of file/image attachments to display with the message", name: "attachments", required: !1, type: { name: "ChatAttachment[]" } }, onAttachmentClick: { defaultValue: null, description: "Callback fired when an attachment is clicked", name: "onAttachmentClick", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, onDownload: { defaultValue: null, description: "Callback fired when file download button is clicked", name: "onDownload", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, hasError: { defaultValue: { value: "false" }, description: "Whether the message failed to send", name: "hasError", required: !1, type: { name: "boolean" } }, errorMessage: { defaultValue: { value: "Failed to send message" }, description: "Custom error message to display when hasError is true", name: "errorMessage", required: !1, type: { name: "string" } }, onRetry: { defaultValue: null, description: "Callback fired when retry button is clicked", name: "onRetry", required: !1, type: { name: "(() => void)" } }, loading: { defaultValue: { value: "false" }, description: "Whether to show skeleton loading state instead of content", name: "loading", required: !1, type: { name: "boolean" } } } };
|
|
280
|
-
} catch {
|
|
281
|
-
}
|
|
282
|
-
try {
|
|
283
|
-
schatmessage.displayName = "schatmessage", schatmessage.__docgenInfo = { description: "A comprehensive chat message component for conversation interfaces with support for text, images, and file attachments.", displayName: "schatmessage", props: { message: { defaultValue: null, description: "The message content to display in the chat bubble", name: "message", required: !1, type: { name: "string" } }, variant: { defaultValue: { value: "received" }, description: "The message variant controlling alignment and styling", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"sent"' }, { value: '"received"' }] } }, timestamp: { defaultValue: null, description: "The timestamp for the message, displayed when showTimestamp is true", name: "timestamp", required: !1, type: { name: "string | Date" } }, avatar: { defaultValue: null, description: "Avatar image URL or base64 string to display next to the message", name: "avatar", required: !1, type: { name: "string" } }, senderName: { defaultValue: null, description: "Name of the message sender, displayed above received messages when provided", name: "senderName", required: !1, type: { name: "string" } }, showAvatar: { defaultValue: { value: "true" }, description: "Whether to display the avatar next to the message", name: "showAvatar", required: !1, type: { name: "boolean" } }, showTimestamp: { defaultValue: { value: "false" }, description: "Whether to display the formatted timestamp below the message", name: "showTimestamp", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "70%" }, description: "Maximum width of the message bubble container", name: "maxWidth", required: !1, type: { name: "string | number" } }, attachments: { defaultValue: { value: "[]" }, description: "Array of file/image attachments to display with the message", name: "attachments", required: !1, type: { name: "ChatAttachment[]" } }, onAttachmentClick: { defaultValue: null, description: "Callback fired when an attachment is clicked", name: "onAttachmentClick", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, onDownload: { defaultValue: null, description: "Callback fired when file download button is clicked", name: "onDownload", required: !1, type: { name: "((attachment: ChatAttachment) => void)" } }, hasError: { defaultValue: { value: "false" }, description: "Whether the message failed to send", name: "hasError", required: !1, type: { name: "boolean" } }, errorMessage: { defaultValue: { value: "Failed to send message" }, description: "Custom error message to display when hasError is true", name: "errorMessage", required: !1, type: { name: "string" } }, onRetry: { defaultValue: null, description: "Callback fired when retry button is clicked", name: "onRetry", required: !1, type: { name: "(() => void)" } }, loading: { defaultValue: { value: "false" }, description: "Whether to show skeleton loading state instead of content", name: "loading", required: !1, type: { name: "boolean" } } } };
|
|
284
|
-
} catch {
|
|
285
|
-
}
|
|
276
|
+
Q.displayName = "SChatMessage";
|
|
286
277
|
export {
|
|
287
|
-
|
|
288
|
-
|
|
278
|
+
Q as SChatMessage,
|
|
279
|
+
Q as default
|
|
289
280
|
};
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Stack as
|
|
4
|
-
const
|
|
5
|
-
({ content:
|
|
6
|
-
const
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { forwardRef as a, useId as d } from "react";
|
|
3
|
+
import { Stack as c, Checkbox as l, Typography as n } from "@mui/material";
|
|
4
|
+
const x = a(
|
|
5
|
+
({ content: r, ...t }, s) => {
|
|
6
|
+
const i = d(), o = t.id ?? i;
|
|
7
|
+
return /* @__PURE__ */ e.jsxs(c, { alignItems: "center", direction: "row", display: "flex", justifyContent: "start", children: [
|
|
8
|
+
/* @__PURE__ */ e.jsx(l, { ref: s, ...t, id: o }),
|
|
9
|
+
r && /* @__PURE__ */ e.jsx("label", { htmlFor: o, children: /* @__PURE__ */ e.jsx(n, { variant: "body2", children: r }) })
|
|
10
10
|
] });
|
|
11
11
|
}
|
|
12
12
|
);
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
o.displayName = "SCheckbox", o.__docgenInfo = { description: "A checkbox component with integrated label support and proper accessibility.", displayName: "SCheckbox", props: { content: { defaultValue: null, description: "Content displayed as a clickable label next to the checkbox", name: "content", required: !1, type: { name: "ReactNode" } } } };
|
|
16
|
-
} catch {
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
scheckbox.displayName = "scheckbox", scheckbox.__docgenInfo = { description: "A checkbox component with integrated label support and proper accessibility.", displayName: "scheckbox", props: { content: { defaultValue: null, description: "Content displayed as a clickable label next to the checkbox", name: "content", required: !1, type: { name: "ReactNode" } } } };
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
|
13
|
+
x.displayName = "SCheckbox";
|
|
22
14
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
x as SCheckbox,
|
|
16
|
+
x as default
|
|
25
17
|
};
|
package/dist/s-chip/package.json
CHANGED
|
@@ -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
|
+
}
|
package/dist/s-chip/s-chip.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { j as p } from "../jsx-runtime-
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Chip as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
try {
|
|
7
|
-
r.displayName = "SChip", r.__docgenInfo = { description: "A versatile chip component for displaying compact elements like tags, filters, or user selections.", displayName: "SChip", props: {} };
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
schip.displayName = "schip", schip.__docgenInfo = { description: "A versatile chip component for displaying compact elements like tags, filters, or user selections.", displayName: "schip", props: {} };
|
|
12
|
-
} catch {
|
|
13
|
-
}
|
|
1
|
+
import { j as p } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { Chip as i } from "@mui/material";
|
|
4
|
+
const m = t((r, o) => /* @__PURE__ */ p.jsx(i, { ref: o, ...r }));
|
|
5
|
+
m.displayName = "SChip";
|
|
14
6
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
m as SChip,
|
|
8
|
+
m as default
|
|
17
9
|
};
|
package/dist/s-chips/s-chips.js
CHANGED
|
@@ -1,77 +1,76 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as l, Chip as
|
|
4
|
-
const
|
|
5
|
-
chips:
|
|
6
|
-
overflow:
|
|
7
|
-
onClick:
|
|
8
|
-
overflowText:
|
|
1
|
+
import { j as s } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useRef as g, useState as d, useEffect as S } from "react";
|
|
3
|
+
import { Box as l, Chip as m, Tooltip as v } from "@mui/material";
|
|
4
|
+
const E = ({
|
|
5
|
+
chips: n,
|
|
6
|
+
overflow: r = !0,
|
|
7
|
+
onClick: c,
|
|
8
|
+
overflowText: h = "keywords"
|
|
9
9
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
t += x, r++;
|
|
10
|
+
const u = g(null), [C, b] = d([]), [w, y] = d([]), [x, W] = d(0), a = () => {
|
|
11
|
+
const t = u.current?.offsetWidth || 0;
|
|
12
|
+
let e = 0, i = 0;
|
|
13
|
+
for (let o = 0; o < n.length; o++) {
|
|
14
|
+
const f = p(n[o]);
|
|
15
|
+
if (e + f <= t)
|
|
16
|
+
e += f, i++;
|
|
18
17
|
else
|
|
19
18
|
break;
|
|
20
19
|
}
|
|
21
|
-
if (
|
|
22
|
-
const o =
|
|
23
|
-
for (;
|
|
24
|
-
|
|
20
|
+
if (i < n.length) {
|
|
21
|
+
const o = p(`+${n.length - i} ${h}`);
|
|
22
|
+
for (; e + o > t && i > 0; )
|
|
23
|
+
i--, e -= p(n[i]);
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
return document.body.removeChild(
|
|
32
|
-
},
|
|
33
|
-
return
|
|
34
|
-
if (
|
|
35
|
-
return
|
|
36
|
-
window.removeEventListener("resize",
|
|
25
|
+
b(n.slice(0, i)), y(n.slice(i)), W(n.length - i);
|
|
26
|
+
}, p = (t) => {
|
|
27
|
+
const e = document.createElement("span");
|
|
28
|
+
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = t.trim(), document.body.appendChild(e);
|
|
29
|
+
const i = e.offsetWidth;
|
|
30
|
+
return document.body.removeChild(e), i + 16;
|
|
31
|
+
}, j = r ? { textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden" } : {};
|
|
32
|
+
return S(() => {
|
|
33
|
+
if (r)
|
|
34
|
+
return a(), window.addEventListener("resize", a), () => {
|
|
35
|
+
window.removeEventListener("resize", a);
|
|
37
36
|
};
|
|
38
|
-
}, [
|
|
39
|
-
(
|
|
37
|
+
}, [n, r]), /* @__PURE__ */ s.jsxs(l, { ref: u, display: "flex", maxWidth: "100%", flexWrap: r ? "nowrap" : "wrap", ...j, children: [
|
|
38
|
+
(r ? C : n).map((t) => /* @__PURE__ */ s.jsx(
|
|
40
39
|
l,
|
|
41
40
|
{
|
|
42
41
|
component: "span",
|
|
43
42
|
textTransform: "lowercase",
|
|
44
43
|
onClick: () => {
|
|
45
|
-
|
|
44
|
+
c?.(t);
|
|
46
45
|
},
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
-
|
|
46
|
+
children: /* @__PURE__ */ s.jsx(
|
|
47
|
+
m,
|
|
49
48
|
{
|
|
50
|
-
label:
|
|
49
|
+
label: t.trim(),
|
|
51
50
|
sx: {
|
|
52
51
|
mr: 1,
|
|
53
52
|
mb: 1,
|
|
54
53
|
userSelect: "none",
|
|
55
|
-
cursor:
|
|
54
|
+
cursor: c ? "pointer" : "default"
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
57
|
)
|
|
59
58
|
},
|
|
60
|
-
|
|
59
|
+
t
|
|
61
60
|
)),
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
r && x > 0 && /* @__PURE__ */ s.jsx(
|
|
62
|
+
v,
|
|
64
63
|
{
|
|
65
64
|
slotProps: {
|
|
66
65
|
tooltip: { style: { padding: "0.5rem" } }
|
|
67
66
|
},
|
|
68
67
|
arrow: !0,
|
|
69
68
|
placement: "top",
|
|
70
|
-
title: /* @__PURE__ */
|
|
71
|
-
children: /* @__PURE__ */
|
|
72
|
-
|
|
69
|
+
title: /* @__PURE__ */ s.jsx(l, { display: "flex", gap: 1, maxWidth: "240px", flexWrap: "wrap", children: w.map((t) => /* @__PURE__ */ s.jsx(m, { label: t.trim() }, t)) }),
|
|
70
|
+
children: /* @__PURE__ */ s.jsx(l, { component: "span", textTransform: "lowercase", children: /* @__PURE__ */ s.jsx(
|
|
71
|
+
m,
|
|
73
72
|
{
|
|
74
|
-
label: `+${
|
|
73
|
+
label: `+${x} ${h}`,
|
|
75
74
|
variant: "outlined",
|
|
76
75
|
sx: { mr: 1, mb: 1, userSelect: "none", cursor: "pointer" }
|
|
77
76
|
}
|
|
@@ -80,16 +79,8 @@ const h = ({
|
|
|
80
79
|
)
|
|
81
80
|
] });
|
|
82
81
|
};
|
|
83
|
-
|
|
84
|
-
try {
|
|
85
|
-
h.displayName = "SChips", h.__docgenInfo = { description: "A smart chip display component that handles overflow with intelligent truncation.", displayName: "SChips", props: { chips: { defaultValue: null, description: "Array of strings to display as chips", name: "chips", required: !0, type: { name: "string[]" } }, overflow: { defaultValue: { value: "true" }, description: "Whether to handle overflow with '+N more' chip (default: true)", name: "overflow", required: !1, type: { name: "boolean" } }, onClick: { defaultValue: null, description: "Callback fired when a chip is clicked", name: "onClick", required: !1, type: { name: "((tag: string) => void)" } }, overflowText: { defaultValue: { value: "keywords" }, description: "Text used in overflow chip (default: 'keywords')", name: "overflowText", required: !1, type: { name: "string" } } } };
|
|
86
|
-
} catch {
|
|
87
|
-
}
|
|
88
|
-
try {
|
|
89
|
-
schips.displayName = "schips", schips.__docgenInfo = { description: "A smart chip display component that handles overflow with intelligent truncation.", displayName: "schips", props: { chips: { defaultValue: null, description: "Array of strings to display as chips", name: "chips", required: !0, type: { name: "string[]" } }, overflow: { defaultValue: { value: "true" }, description: "Whether to handle overflow with '+N more' chip (default: true)", name: "overflow", required: !1, type: { name: "boolean" } }, onClick: { defaultValue: null, description: "Callback fired when a chip is clicked", name: "onClick", required: !1, type: { name: "((tag: string) => void)" } }, overflowText: { defaultValue: { value: "keywords" }, description: "Text used in overflow chip (default: 'keywords')", name: "overflowText", required: !1, type: { name: "string" } } } };
|
|
90
|
-
} catch {
|
|
91
|
-
}
|
|
82
|
+
E.displayName = "SChips";
|
|
92
83
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
E as SChips,
|
|
85
|
+
E as default
|
|
95
86
|
};
|
|
@@ -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
|
+
}
|