@solostylist/ui-kit 1.0.166 → 1.0.168
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/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +182 -172
- package/dist/s-accordion/index.js +2 -2
- package/dist/s-accordion/s-accordion.d.ts +17 -1
- package/dist/s-accordion/s-accordion.js +252 -238
- package/dist/s-action-overlay/index.js +1 -1
- package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
- package/dist/s-action-overlay/s-action-overlay.js +67 -55
- package/dist/s-ai-tool-bar/index.d.ts +2 -0
- package/dist/s-ai-tool-bar/index.js +3 -2
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +43 -22
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +336 -255
- package/dist/s-autocomplete/index.js +2 -2
- package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
- package/dist/s-autocomplete/s-autocomplete.js +25 -17
- package/dist/s-avatar/index.js +2 -2
- package/dist/s-avatar/s-avatar.d.ts +16 -1
- package/dist/s-avatar/s-avatar.js +23 -10
- package/dist/s-blur-text/index.js +2 -2
- package/dist/s-blur-text/s-blur-text.d.ts +4 -13
- package/dist/s-blur-text/s-blur-text.js +57 -51
- package/dist/s-breadcrumbs/index.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
- package/dist/s-button/index.js +2 -2
- package/dist/s-button/s-button.d.ts +7 -1
- package/dist/s-button/s-button.js +15 -5
- package/dist/s-button-link/index.js +2 -2
- package/dist/s-button-link/s-button-link.d.ts +12 -26
- package/dist/s-button-link/s-button-link.js +36 -26
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +11 -1
- package/dist/s-carousel/s-carousel.js +233 -223
- package/dist/s-category-card/index.js +2 -2
- package/dist/s-category-card/s-category-card.d.ts +28 -1
- package/dist/s-category-card/s-category-card.js +77 -58
- package/dist/s-chat-input/index.js +2 -2
- package/dist/s-chat-input/s-chat-input.d.ts +12 -1
- package/dist/s-chat-input/s-chat-input.js +92 -82
- package/dist/s-chat-message/index.js +2 -2
- package/dist/s-chat-message/s-chat-message.d.ts +22 -1
- package/dist/s-chat-message/s-chat-message.js +144 -133
- package/dist/s-checkbox/index.js +2 -2
- package/dist/s-checkbox/s-checkbox.d.ts +2 -15
- package/dist/s-checkbox/s-checkbox.js +20 -10
- package/dist/s-chip/index.js +2 -2
- package/dist/s-chip/s-chip.d.ts +7 -1
- package/dist/s-chip/s-chip.js +15 -5
- package/dist/s-chips/index.js +2 -2
- package/dist/s-chips/s-chips.d.ts +5 -18
- package/dist/s-chips/s-chips.js +56 -41
- package/dist/s-comment-message/index.js +2 -2
- package/dist/s-comment-message/s-comment-message.d.ts +26 -1
- package/dist/s-comment-message/s-comment-message.js +95 -89
- package/dist/s-copyable-text/index.js +1 -1
- package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
- package/dist/s-copyable-text/s-copyable-text.js +31 -21
- package/dist/s-countdown/index.d.ts +3 -2
- package/dist/s-countdown/index.js +4 -3
- package/dist/s-countdown/s-count-box.d.ts +39 -0
- package/dist/s-countdown/s-count-box.js +112 -0
- package/dist/s-countdown/s-count-down.d.ts +6 -50
- package/dist/s-countdown/s-count-down.js +110 -175
- package/dist/s-data-table/index.js +2 -2
- package/dist/s-data-table/s-data-table.d.ts +9 -65
- package/dist/s-data-table/s-data-table.js +381 -371
- package/dist/s-date-picker/index.js +2 -2
- package/dist/s-date-picker/s-date-picker.d.ts +6 -17
- package/dist/s-date-picker/s-date-picker.js +124 -107
- package/dist/s-datetime-picker/index.js +2 -2
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
- package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
- package/dist/s-dialog/index.js +2 -2
- package/dist/s-dialog/s-dialog.d.ts +3 -16
- package/dist/s-dialog/s-dialog.js +32 -23
- package/dist/s-dialog-confirm/index.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
- package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
- package/dist/s-dialog-message/index.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
- package/dist/s-dialog-message/s-dialog-message.js +45 -38
- package/dist/s-empty/index.js +2 -2
- package/dist/s-empty/s-empty.d.ts +5 -20
- package/dist/s-empty/s-empty.js +14 -4
- package/dist/s-error/index.js +2 -2
- package/dist/s-error/s-error.d.ts +5 -20
- package/dist/s-error/s-error.js +16 -6
- package/dist/s-error-layout/index.js +2 -2
- package/dist/s-error-layout/s-error-layout.d.ts +6 -1
- package/dist/s-error-layout/s-error-layout.js +60 -51
- package/dist/s-file-dropzone/index.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
- package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
- package/dist/s-file-icon/index.js +2 -2
- package/dist/s-file-icon/s-file-icon.d.ts +5 -25
- package/dist/s-file-icon/s-file-icon.js +14 -8
- package/dist/s-flex-box/index.js +2 -2
- package/dist/s-flex-box/s-flex-box.d.ts +10 -1
- package/dist/s-flex-box/s-flex-box.js +14 -4
- package/dist/s-form/index.js +2 -2
- package/dist/s-form/s-form.d.ts +5 -14
- package/dist/s-form/s-form.js +19 -9
- package/dist/s-gallery/index.js +33 -3
- package/dist/s-gallery/s-gallery.d.ts +3 -36
- package/dist/s-gallery/s-gallery.js +108 -78
- package/dist/s-glow-button/s-glow-button.d.ts +6 -42
- package/dist/s-glow-button/s-glow-button.js +29 -47
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/index.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
- package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
- package/dist/s-i18n-provider/index.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
- package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
- package/dist/s-icon-button/index.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -19
- package/dist/s-icon-button/s-icon-button.js +14 -4
- package/dist/s-image-comparison/s-image-comparison.js +50 -45
- package/dist/s-image-modal/index.js +3 -3
- package/dist/s-image-modal/s-image-modal.d.ts +4 -20
- package/dist/s-image-modal/s-image-modal.js +150 -135
- package/dist/s-item-not-found/index.js +2 -2
- package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
- package/dist/s-item-not-found/s-item-not-found.js +21 -10
- package/dist/s-label/index.js +2 -2
- package/dist/s-label/s-label.d.ts +9 -25
- package/dist/s-label/s-label.js +19 -9
- package/dist/s-language-switcher/index.js +3 -3
- package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
- package/dist/s-language-switcher/s-language-switcher.js +137 -115
- package/dist/s-lazy-image/index.js +10 -2
- package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
- package/dist/s-lazy-image/s-lazy-image.js +53 -58
- package/dist/s-localization-provider/index.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
- package/dist/s-localization-provider/s-localization-provider.js +157 -149
- package/dist/s-moving-border/index.js +2 -2
- package/dist/s-moving-border/s-moving-border.d.ts +3 -33
- package/dist/s-moving-border/s-moving-border.js +65 -55
- package/dist/s-multi-select/index.js +2 -2
- package/dist/s-multi-select/s-multi-select.d.ts +5 -15
- package/dist/s-multi-select/s-multi-select.js +54 -45
- package/dist/s-no-ssr/index.js +2 -2
- package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
- package/dist/s-no-ssr/s-no-ssr.js +21 -11
- package/dist/s-overlay-scrollbar/index.js +2 -2
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
- package/dist/s-pagination/index.js +2 -2
- package/dist/s-pagination/s-pagination.d.ts +5 -23
- package/dist/s-pagination/s-pagination.js +17 -11
- package/dist/s-pixel-reveal/index.d.ts +2 -0
- package/dist/s-pixel-reveal/index.js +4 -0
- package/dist/s-pixel-reveal/package.json +5 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +27 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.js +156 -0
- package/dist/s-radial-pulse-animate/index.js +2 -2
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
- package/dist/s-rating/index.js +2 -2
- package/dist/s-rating/s-rating.d.ts +7 -1
- package/dist/s-rating/s-rating.js +15 -5
- package/dist/s-review/index.js +2 -2
- package/dist/s-review/s-review.d.ts +25 -1
- package/dist/s-review/s-review.js +104 -97
- package/dist/s-scroll-reveal/index.js +2 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
- package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
- package/dist/s-scroll-to-top/index.js +2 -2
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
- package/dist/s-select/index.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -22
- package/dist/s-select/s-select.js +76 -72
- package/dist/s-select-list/index.js +2 -2
- package/dist/s-select-list/s-select-list.d.ts +16 -19
- package/dist/s-select-list/s-select-list.js +33 -28
- package/dist/s-skeleton/index.js +2 -2
- package/dist/s-skeleton/s-skeleton.d.ts +6 -22
- package/dist/s-skeleton/s-skeleton.js +28 -18
- package/dist/s-snackbar-message/index.js +4 -4
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
- package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
- package/dist/s-spotlight-cursor/index.js +2 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
- package/dist/s-stripe/index.d.ts +4 -1
- package/dist/s-stripe/index.js +7 -4
- package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
- package/dist/s-stripe/s-stripe-cvc.js +15 -0
- package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
- package/dist/s-stripe/s-stripe-expiry.js +15 -0
- package/dist/s-stripe/s-stripe-number.d.ts +8 -0
- package/dist/s-stripe/s-stripe-number.js +15 -0
- package/dist/s-stripe/s-stripe.d.ts +6 -85
- package/dist/s-stripe/s-stripe.js +24 -27
- package/dist/s-stripe/stripe-input.js +22 -18
- package/dist/s-tabs/index.js +6 -6
- package/dist/s-tabs/s-tab-panel.d.ts +11 -1
- package/dist/s-tabs/s-tab-panel.js +25 -16
- package/dist/s-tabs/s-tab.js +9 -5
- package/dist/s-tabs/s-tabs.d.ts +24 -3
- package/dist/s-tabs/s-tabs.js +34 -25
- package/dist/s-text-editor/index.js +3 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
- package/dist/s-text-editor/s-text-editor.d.ts +13 -11
- package/dist/s-text-editor/s-text-editor.js +44 -30
- package/dist/s-text-field/index.js +2 -2
- package/dist/s-text-field/s-text-field.d.ts +6 -15
- package/dist/s-text-field/s-text-field.js +38 -28
- package/dist/s-text-shimmer/index.js +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
- package/dist/s-text-truncation/index.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
- package/dist/s-text-truncation/s-text-truncation.js +34 -20
- package/dist/s-theme-demo/s-theme-demo.js +238 -223
- package/dist/s-theme-provider/index.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
- package/dist/s-theme-provider/s-theme-provider.js +44 -34
- package/dist/s-theme-switch/s-theme-switch.js +23 -19
- package/dist/s-tip/index.js +2 -2
- package/dist/s-tip/s-tip.d.ts +5 -22
- package/dist/s-tip/s-tip.js +22 -12
- package/dist/s-two-pane-layout/index.js +10 -2
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
- package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
- package/dist/s-typewriter-text/index.js +2 -2
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
- package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
- package/dist/s-zoom-image/index.js +10 -2
- package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
- package/dist/s-zoom-image/s-zoom-image.js +62 -52
- package/dist/theme/components/alert.d.ts +1440 -1440
- package/dist/theme/components/button.d.ts +2156 -2156
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
- package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
- package/package.json +10 -4
|
@@ -1,78 +1,79 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Box as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { useState as z } from "react";
|
|
3
|
+
import { Box as i, Typography as r, Paper as E, IconButton as M } from "@mui/material";
|
|
4
|
+
import { SAvatar as A } from "../s-avatar/s-avatar.js";
|
|
5
|
+
import { SImageModal as L } from "../s-image-modal/s-image-modal.js";
|
|
6
|
+
import "../s-lazy-image/index.js";
|
|
7
|
+
import { SSkeleton as s } from "../s-skeleton/s-skeleton.js";
|
|
8
|
+
import O from "../s-lazy-image/s-lazy-image.js";
|
|
9
|
+
import { c as y } from "../createSvgIcon-DxwgGAVe.js";
|
|
10
|
+
import { D as U } from "../Download-UsLvGg3y.js";
|
|
11
|
+
const H = y(/* @__PURE__ */ e.jsx("path", {
|
|
11
12
|
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"
|
|
12
|
-
}), "ErrorOutline"),
|
|
13
|
+
}), "ErrorOutline"), P = y(/* @__PURE__ */ e.jsx("path", {
|
|
13
14
|
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"
|
|
14
|
-
}), "InsertDriveFile"),
|
|
15
|
+
}), "InsertDriveFile"), G = y(/* @__PURE__ */ e.jsx("path", {
|
|
15
16
|
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"
|
|
16
|
-
}), "Refresh"),
|
|
17
|
-
message:
|
|
18
|
-
variant:
|
|
19
|
-
timestamp:
|
|
20
|
-
avatar:
|
|
21
|
-
senderName:
|
|
22
|
-
showAvatar:
|
|
23
|
-
showTimestamp:
|
|
24
|
-
maxWidth:
|
|
25
|
-
attachments:
|
|
26
|
-
onAttachmentClick:
|
|
27
|
-
onDownload:
|
|
28
|
-
hasError:
|
|
29
|
-
errorMessage:
|
|
30
|
-
onRetry:
|
|
31
|
-
loading:
|
|
32
|
-
sx:
|
|
33
|
-
...
|
|
17
|
+
}), "Refresh"), x = ({
|
|
18
|
+
message: l,
|
|
19
|
+
variant: T = "received",
|
|
20
|
+
timestamp: v,
|
|
21
|
+
avatar: w,
|
|
22
|
+
senderName: n,
|
|
23
|
+
showAvatar: o = !0,
|
|
24
|
+
showTimestamp: b = !1,
|
|
25
|
+
maxWidth: j = "70%",
|
|
26
|
+
attachments: f = [],
|
|
27
|
+
onAttachmentClick: d,
|
|
28
|
+
onDownload: m,
|
|
29
|
+
hasError: g = !1,
|
|
30
|
+
errorMessage: W = "Failed to send message",
|
|
31
|
+
onRetry: k,
|
|
32
|
+
loading: _ = !1,
|
|
33
|
+
sx: C,
|
|
34
|
+
...V
|
|
34
35
|
}) => {
|
|
35
|
-
const [
|
|
36
|
+
const [c, q] = z(null), [D, S] = z(!1), t = T === "sent", R = (a) => (typeof a == "string" ? new Date(a) : a).toLocaleTimeString("en-US", {
|
|
36
37
|
hour: "2-digit",
|
|
37
38
|
minute: "2-digit",
|
|
38
39
|
hour12: !0
|
|
39
|
-
}),
|
|
40
|
-
if (!
|
|
41
|
-
const p = ["Bytes", "KB", "MB", "GB"],
|
|
42
|
-
return Math.round(
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
return
|
|
49
|
-
|
|
40
|
+
}), F = (a) => {
|
|
41
|
+
if (!a) return "";
|
|
42
|
+
const p = ["Bytes", "KB", "MB", "GB"], u = Math.floor(Math.log(a) / Math.log(1024));
|
|
43
|
+
return Math.round(a / Math.pow(1024, u) * 100) / 100 + " " + p[u];
|
|
44
|
+
}, N = (a) => {
|
|
45
|
+
d ? d(a) : (q(a), S(!0));
|
|
46
|
+
}, B = (a) => {
|
|
47
|
+
d ? d(a) : m && m(a);
|
|
48
|
+
}, h = f.filter((a) => a.type === "image"), I = f.filter((a) => a.type === "file");
|
|
49
|
+
return _ ? /* @__PURE__ */ e.jsxs(
|
|
50
|
+
i,
|
|
50
51
|
{
|
|
51
52
|
display: "flex",
|
|
52
|
-
flexDirection:
|
|
53
|
+
flexDirection: t ? "row-reverse" : "row",
|
|
53
54
|
alignItems: "flex-start",
|
|
54
55
|
gap: 1,
|
|
55
56
|
mb: 1,
|
|
56
57
|
sx: {
|
|
57
|
-
maxWidth:
|
|
58
|
-
alignSelf:
|
|
59
|
-
...
|
|
58
|
+
maxWidth: j,
|
|
59
|
+
alignSelf: t ? "flex-end" : "flex-start",
|
|
60
|
+
...C
|
|
60
61
|
},
|
|
61
|
-
...
|
|
62
|
+
...V,
|
|
62
63
|
children: [
|
|
63
|
-
|
|
64
|
+
o && !t && /* @__PURE__ */ e.jsx(s, { component: "rounded-avatar", width: 36, height: 36 }),
|
|
64
65
|
/* @__PURE__ */ e.jsxs(
|
|
65
|
-
|
|
66
|
+
i,
|
|
66
67
|
{
|
|
67
68
|
display: "flex",
|
|
68
69
|
flexDirection: "column",
|
|
69
|
-
alignItems:
|
|
70
|
+
alignItems: t ? "flex-end" : "flex-start",
|
|
70
71
|
gap: 0.5,
|
|
71
72
|
sx: { minWidth: 0 },
|
|
72
73
|
children: [
|
|
73
|
-
|
|
74
|
+
n && !t && /* @__PURE__ */ e.jsx(s, { variant: "text", width: 100, height: 12, sx: { ml: 0.5 } }),
|
|
74
75
|
/* @__PURE__ */ e.jsxs(
|
|
75
|
-
|
|
76
|
+
i,
|
|
76
77
|
{
|
|
77
78
|
sx: {
|
|
78
79
|
display: "inline-block",
|
|
@@ -82,46 +83,46 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
82
83
|
ml: 0.5
|
|
83
84
|
},
|
|
84
85
|
children: [
|
|
85
|
-
/* @__PURE__ */ e.jsx(
|
|
86
|
-
/* @__PURE__ */ e.jsx(
|
|
87
|
-
/* @__PURE__ */ e.jsx(
|
|
86
|
+
/* @__PURE__ */ e.jsx(s, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
|
|
87
|
+
/* @__PURE__ */ e.jsx(s, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
|
|
88
|
+
/* @__PURE__ */ e.jsx(s, { variant: "text", width: "70%", height: 16 })
|
|
88
89
|
]
|
|
89
90
|
}
|
|
90
91
|
),
|
|
91
|
-
|
|
92
|
+
b && /* @__PURE__ */ e.jsx(s, { variant: "text", width: 60, height: 10, sx: { ml: t ? 0 : 0.5, mr: t ? 0.5 : 0 } })
|
|
92
93
|
]
|
|
93
94
|
}
|
|
94
95
|
),
|
|
95
|
-
|
|
96
|
+
o && t && /* @__PURE__ */ e.jsx(s, { component: "rounded-avatar", width: 36, height: 36 })
|
|
96
97
|
]
|
|
97
98
|
}
|
|
98
99
|
) : /* @__PURE__ */ e.jsxs(
|
|
99
|
-
|
|
100
|
+
i,
|
|
100
101
|
{
|
|
101
102
|
display: "flex",
|
|
102
|
-
flexDirection:
|
|
103
|
+
flexDirection: t ? "row-reverse" : "row",
|
|
103
104
|
alignItems: "flex-start",
|
|
104
105
|
gap: 1,
|
|
105
106
|
mb: 1,
|
|
106
107
|
sx: {
|
|
107
|
-
maxWidth:
|
|
108
|
-
alignSelf:
|
|
109
|
-
...
|
|
108
|
+
maxWidth: j,
|
|
109
|
+
alignSelf: t ? "flex-end" : "flex-start",
|
|
110
|
+
...C
|
|
110
111
|
},
|
|
111
|
-
...
|
|
112
|
+
...V,
|
|
112
113
|
children: [
|
|
113
|
-
|
|
114
|
+
o && !t && /* @__PURE__ */ e.jsx(A, { avatar: w, name: n, size: 36 }),
|
|
114
115
|
/* @__PURE__ */ e.jsxs(
|
|
115
|
-
|
|
116
|
+
i,
|
|
116
117
|
{
|
|
117
118
|
display: "flex",
|
|
118
119
|
flexDirection: "column",
|
|
119
|
-
alignItems:
|
|
120
|
+
alignItems: t ? "flex-end" : "flex-start",
|
|
120
121
|
gap: 0.5,
|
|
121
122
|
sx: { minWidth: 0 },
|
|
122
123
|
children: [
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
n && !t && /* @__PURE__ */ e.jsx(
|
|
125
|
+
r,
|
|
125
126
|
{
|
|
126
127
|
variant: "caption",
|
|
127
128
|
sx: {
|
|
@@ -130,46 +131,46 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
130
131
|
fontWeight: 500,
|
|
131
132
|
ml: 0.5
|
|
132
133
|
},
|
|
133
|
-
children:
|
|
134
|
+
children: n
|
|
134
135
|
}
|
|
135
136
|
),
|
|
136
137
|
/* @__PURE__ */ e.jsxs(
|
|
137
|
-
|
|
138
|
+
i,
|
|
138
139
|
{
|
|
139
140
|
sx: {
|
|
140
141
|
display: "inline-block",
|
|
141
142
|
borderRadius: 2,
|
|
142
143
|
wordBreak: "break-word",
|
|
143
144
|
maxWidth: "100%",
|
|
144
|
-
backgroundColor:
|
|
145
|
-
color:
|
|
146
|
-
border:
|
|
147
|
-
borderColor:
|
|
148
|
-
...
|
|
145
|
+
backgroundColor: t ? "primary.main" : "",
|
|
146
|
+
color: t ? "primary.contrastText" : "text.primary",
|
|
147
|
+
border: t ? "none" : "1px solid",
|
|
148
|
+
borderColor: g ? "error.main" : "divider",
|
|
149
|
+
...t && {
|
|
149
150
|
backgroundColor: "primary.dark"
|
|
150
151
|
},
|
|
151
|
-
...
|
|
152
|
+
...g && {
|
|
152
153
|
opacity: 0.7
|
|
153
154
|
},
|
|
154
155
|
overflow: "hidden"
|
|
155
156
|
},
|
|
156
157
|
children: [
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
h.length > 0 && /* @__PURE__ */ e.jsx(
|
|
159
|
+
i,
|
|
159
160
|
{
|
|
160
161
|
sx: {
|
|
161
162
|
display: "grid",
|
|
162
|
-
gridTemplateColumns:
|
|
163
|
+
gridTemplateColumns: h.length === 1 ? "1fr" : "repeat(2, 1fr)",
|
|
163
164
|
gap: 0.5,
|
|
164
165
|
p: 0.5
|
|
165
166
|
},
|
|
166
167
|
minWidth: 200,
|
|
167
|
-
children:
|
|
168
|
-
|
|
168
|
+
children: h.map((a) => /* @__PURE__ */ e.jsx(
|
|
169
|
+
i,
|
|
169
170
|
{
|
|
170
171
|
sx: {
|
|
171
172
|
position: "relative",
|
|
172
|
-
paddingTop:
|
|
173
|
+
paddingTop: h.length === 1 ? "66.67%" : "100%",
|
|
173
174
|
cursor: "pointer",
|
|
174
175
|
borderRadius: 1.5,
|
|
175
176
|
overflow: "hidden",
|
|
@@ -177,12 +178,12 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
177
178
|
opacity: 0.9
|
|
178
179
|
}
|
|
179
180
|
},
|
|
180
|
-
onClick: () =>
|
|
181
|
+
onClick: () => N(a),
|
|
181
182
|
children: /* @__PURE__ */ e.jsx(
|
|
182
|
-
|
|
183
|
+
O,
|
|
183
184
|
{
|
|
184
|
-
src:
|
|
185
|
-
alt:
|
|
185
|
+
src: a.thumbnailUrl || a.url,
|
|
186
|
+
alt: a.name || "Image",
|
|
186
187
|
width: "100%",
|
|
187
188
|
height: "100%",
|
|
188
189
|
style: {
|
|
@@ -194,12 +195,12 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
194
195
|
}
|
|
195
196
|
)
|
|
196
197
|
},
|
|
197
|
-
|
|
198
|
+
a.id
|
|
198
199
|
))
|
|
199
200
|
}
|
|
200
201
|
),
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
I.length > 0 && /* @__PURE__ */ e.jsx(i, { sx: { p: 1.5 }, children: I.map((a, p) => /* @__PURE__ */ e.jsxs(
|
|
203
|
+
E,
|
|
203
204
|
{
|
|
204
205
|
variant: "outlined",
|
|
205
206
|
sx: {
|
|
@@ -209,25 +210,25 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
209
210
|
p: 1,
|
|
210
211
|
mt: p > 0 ? 1 : 0,
|
|
211
212
|
cursor: "pointer",
|
|
212
|
-
backgroundColor:
|
|
213
|
+
backgroundColor: t ? "blackAlpha.zero" : "background.paper",
|
|
213
214
|
"&:hover": {
|
|
214
|
-
backgroundColor:
|
|
215
|
+
backgroundColor: t ? "blackAlpha.light" : "action.hover"
|
|
215
216
|
}
|
|
216
217
|
},
|
|
217
|
-
onClick: () =>
|
|
218
|
+
onClick: () => B(a),
|
|
218
219
|
children: [
|
|
219
220
|
/* @__PURE__ */ e.jsx(
|
|
220
|
-
|
|
221
|
+
P,
|
|
221
222
|
{
|
|
222
223
|
sx: {
|
|
223
224
|
fontSize: 32,
|
|
224
|
-
color:
|
|
225
|
+
color: t ? "primary.contrastText" : "action.active"
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
228
|
),
|
|
228
|
-
/* @__PURE__ */ e.jsxs(
|
|
229
|
+
/* @__PURE__ */ e.jsxs(i, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
229
230
|
/* @__PURE__ */ e.jsx(
|
|
230
|
-
|
|
231
|
+
r,
|
|
231
232
|
{
|
|
232
233
|
variant: "body2",
|
|
233
234
|
sx: {
|
|
@@ -236,42 +237,42 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
236
237
|
overflow: "hidden",
|
|
237
238
|
textOverflow: "ellipsis",
|
|
238
239
|
whiteSpace: "nowrap",
|
|
239
|
-
color:
|
|
240
|
+
color: t ? "inherit" : "text.primary"
|
|
240
241
|
},
|
|
241
|
-
children:
|
|
242
|
+
children: a.name || "Unnamed File"
|
|
242
243
|
}
|
|
243
244
|
),
|
|
244
|
-
|
|
245
|
-
|
|
245
|
+
a.size && /* @__PURE__ */ e.jsx(
|
|
246
|
+
r,
|
|
246
247
|
{
|
|
247
248
|
variant: "caption",
|
|
248
249
|
sx: {
|
|
249
250
|
fontSize: "0.75rem",
|
|
250
|
-
color:
|
|
251
|
+
color: t ? "whiteAlpha.dark" : "text.secondary"
|
|
251
252
|
},
|
|
252
|
-
children:
|
|
253
|
+
children: F(a.size)
|
|
253
254
|
}
|
|
254
255
|
)
|
|
255
256
|
] }),
|
|
256
|
-
|
|
257
|
-
|
|
257
|
+
m && /* @__PURE__ */ e.jsx(
|
|
258
|
+
M,
|
|
258
259
|
{
|
|
259
260
|
size: "small",
|
|
260
|
-
onClick: (
|
|
261
|
-
|
|
261
|
+
onClick: (u) => {
|
|
262
|
+
u.stopPropagation(), m(a);
|
|
262
263
|
},
|
|
263
264
|
sx: {
|
|
264
|
-
color:
|
|
265
|
+
color: t ? "primary.contrastText" : "action.active"
|
|
265
266
|
},
|
|
266
|
-
children: /* @__PURE__ */ e.jsx(
|
|
267
|
+
children: /* @__PURE__ */ e.jsx(U, { fontSize: "small" })
|
|
267
268
|
}
|
|
268
269
|
)
|
|
269
270
|
]
|
|
270
271
|
},
|
|
271
|
-
|
|
272
|
+
a.id
|
|
272
273
|
)) }),
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
l && /* @__PURE__ */ e.jsx(i, { sx: { px: 2, py: 1.5, pt: f.length > 0 ? 0 : 1.5 }, children: /* @__PURE__ */ e.jsx(
|
|
275
|
+
r,
|
|
275
276
|
{
|
|
276
277
|
variant: "body2",
|
|
277
278
|
sx: {
|
|
@@ -279,69 +280,69 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
279
280
|
lineHeight: 1.4,
|
|
280
281
|
whiteSpace: "pre-wrap"
|
|
281
282
|
},
|
|
282
|
-
children:
|
|
283
|
+
children: l
|
|
283
284
|
}
|
|
284
285
|
) })
|
|
285
286
|
]
|
|
286
287
|
}
|
|
287
288
|
),
|
|
288
|
-
|
|
289
|
-
|
|
289
|
+
b && v && /* @__PURE__ */ e.jsx(
|
|
290
|
+
r,
|
|
290
291
|
{
|
|
291
292
|
variant: "caption",
|
|
292
293
|
sx: {
|
|
293
294
|
color: "text.secondary",
|
|
294
295
|
fontSize: "0.7rem",
|
|
295
|
-
ml:
|
|
296
|
-
mr:
|
|
296
|
+
ml: t ? 0 : 0.5,
|
|
297
|
+
mr: t ? 0.5 : 0
|
|
297
298
|
},
|
|
298
|
-
children:
|
|
299
|
+
children: R(v)
|
|
299
300
|
}
|
|
300
301
|
),
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
g && /* @__PURE__ */ e.jsxs(
|
|
303
|
+
i,
|
|
303
304
|
{
|
|
304
305
|
display: "flex",
|
|
305
306
|
alignItems: "center",
|
|
306
307
|
gap: 0.5,
|
|
307
308
|
sx: {
|
|
308
309
|
color: "error.main",
|
|
309
|
-
ml:
|
|
310
|
-
mr:
|
|
310
|
+
ml: t ? 0 : 0.5,
|
|
311
|
+
mr: t ? 0.5 : 0
|
|
311
312
|
},
|
|
312
313
|
children: [
|
|
313
|
-
/* @__PURE__ */ e.jsx(
|
|
314
|
+
/* @__PURE__ */ e.jsx(H, { sx: { fontSize: "1rem" } }),
|
|
314
315
|
/* @__PURE__ */ e.jsx(
|
|
315
|
-
|
|
316
|
+
r,
|
|
316
317
|
{
|
|
317
318
|
variant: "caption",
|
|
318
319
|
sx: {
|
|
319
320
|
fontSize: "0.875rem",
|
|
320
321
|
fontWeight: 500
|
|
321
322
|
},
|
|
322
|
-
children:
|
|
323
|
+
children: W
|
|
323
324
|
}
|
|
324
325
|
),
|
|
325
|
-
|
|
326
|
+
k && /* @__PURE__ */ e.jsx(M, { size: "small", onClick: k, children: /* @__PURE__ */ e.jsx(G, {}) })
|
|
326
327
|
]
|
|
327
328
|
}
|
|
328
329
|
)
|
|
329
330
|
]
|
|
330
331
|
}
|
|
331
332
|
),
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
o && t && /* @__PURE__ */ e.jsx(A, { avatar: w, name: n, size: 36 }),
|
|
334
|
+
c && /* @__PURE__ */ e.jsx(
|
|
335
|
+
L,
|
|
335
336
|
{
|
|
336
|
-
isOpen:
|
|
337
|
+
isOpen: D,
|
|
337
338
|
onClose: () => {
|
|
338
|
-
|
|
339
|
+
S(!1), q(null);
|
|
339
340
|
},
|
|
340
341
|
selectedItem: {
|
|
341
|
-
id:
|
|
342
|
+
id: c.id,
|
|
342
343
|
type: "image",
|
|
343
|
-
url:
|
|
344
|
-
title:
|
|
344
|
+
url: c.url,
|
|
345
|
+
title: c.name
|
|
345
346
|
},
|
|
346
347
|
showNavigation: !1,
|
|
347
348
|
showThumbnailDock: !1
|
|
@@ -351,6 +352,16 @@ const K = g(/* @__PURE__ */ e.jsx("path", {
|
|
|
351
352
|
}
|
|
352
353
|
);
|
|
353
354
|
};
|
|
355
|
+
x.displayName = "SChatMessage";
|
|
356
|
+
try {
|
|
357
|
+
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" } } } };
|
|
358
|
+
} catch {
|
|
359
|
+
}
|
|
360
|
+
try {
|
|
361
|
+
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" } } } };
|
|
362
|
+
} catch {
|
|
363
|
+
}
|
|
354
364
|
export {
|
|
355
|
-
|
|
365
|
+
x as SChatMessage,
|
|
366
|
+
x as default
|
|
356
367
|
};
|
package/dist/s-checkbox/index.js
CHANGED
|
@@ -9,20 +9,7 @@ export interface SCheckboxProps extends Omit<CheckboxProps, 'content'> {
|
|
|
9
9
|
content?: string | React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* proper accessibility and consistent styling with the design system.
|
|
14
|
-
*
|
|
15
|
-
* Key features:
|
|
16
|
-
* - Automatic ID generation for accessibility when no ID is provided
|
|
17
|
-
* - Clickable label that toggles the checkbox state
|
|
18
|
-
* - Horizontal layout with proper spacing between checkbox and label
|
|
19
|
-
* - Full Material-UI Checkbox API compatibility
|
|
20
|
-
* - Forward ref support for form libraries and external control
|
|
21
|
-
* - Typography integration for consistent text styling
|
|
22
|
-
*
|
|
23
|
-
* @param props - SCheckboxProps with content and Material-UI Checkbox props
|
|
24
|
-
* @param ref - Forward ref to the underlying Checkbox component
|
|
25
|
-
* @returns JSX.Element - Checkbox with optional integrated label
|
|
12
|
+
* A checkbox component with integrated label support and proper accessibility.
|
|
26
13
|
*/
|
|
27
|
-
declare const SCheckbox: React.ForwardRefExoticComponent<Omit<SCheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export declare const SCheckbox: React.ForwardRefExoticComponent<Omit<SCheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
28
15
|
export default SCheckbox;
|
|
@@ -1,15 +1,25 @@
|
|
|
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 t } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { forwardRef as i, useId as s } from "react";
|
|
3
|
+
import { Stack as l, Checkbox as d, Typography as p } from "@mui/material";
|
|
4
|
+
const o = i(
|
|
5
|
+
({ content: e, ...c }, r) => {
|
|
6
|
+
const n = s(), a = c.id ?? n;
|
|
7
|
+
return /* @__PURE__ */ t.jsxs(l, { alignItems: "center", direction: "row", display: "flex", justifyContent: "start", children: [
|
|
8
|
+
/* @__PURE__ */ t.jsx(d, { ref: r, ...c, id: a }),
|
|
9
|
+
e && /* @__PURE__ */ t.jsx("label", { htmlFor: a, children: /* @__PURE__ */ t.jsx(p, { variant: "body2", children: e }) })
|
|
10
10
|
] });
|
|
11
11
|
}
|
|
12
12
|
);
|
|
13
|
+
o.displayName = "SCheckbox";
|
|
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
22
|
export {
|
|
14
|
-
|
|
23
|
+
o as SCheckbox,
|
|
24
|
+
o as default
|
|
15
25
|
};
|
package/dist/s-chip/index.js
CHANGED
package/dist/s-chip/s-chip.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ChipProps } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Props interface for SChip component
|
|
5
|
+
*/
|
|
3
6
|
export interface SChipProps extends ChipProps {
|
|
4
7
|
}
|
|
5
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A versatile chip component for displaying compact elements like tags, filters, or user selections.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SChip: React.ForwardRefExoticComponent<Omit<SChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
12
|
export default SChip;
|
package/dist/s-chip/s-chip.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Chip as
|
|
4
|
-
const
|
|
1
|
+
import { j as p } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { Chip as o } from "@mui/material";
|
|
4
|
+
const r = s((e, i) => /* @__PURE__ */ p.jsx(o, { ref: i, ...e }));
|
|
5
|
+
r.displayName = "SChip";
|
|
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
|
+
}
|
|
5
14
|
export {
|
|
6
|
-
|
|
15
|
+
r as SChip,
|
|
16
|
+
r as default
|
|
7
17
|
};
|
package/dist/s-chips/index.js
CHANGED