@solostylist/ui-kit 1.0.175 → 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.js +84 -92
- 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/icon-button.d.ts +726 -396
- 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,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useColorScheme as
|
|
4
|
-
import { Prism as
|
|
5
|
-
import { C as
|
|
6
|
-
const
|
|
1
|
+
import { j as o } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as g } from "react";
|
|
3
|
+
import { useColorScheme as p, Box as k, IconButton as u } from "@mui/material";
|
|
4
|
+
import { Prism as b } from "react-syntax-highlighter";
|
|
5
|
+
import { C as m, a as f } from "../ContentCopy-2xxDThyB.js";
|
|
6
|
+
const w = {
|
|
7
7
|
'code[class*="language-"]': {
|
|
8
8
|
background: "hsl(220, 13%, 18%)",
|
|
9
9
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -503,7 +503,7 @@ const v = {
|
|
|
503
503
|
".prism-previewer-easing.prism-previewer-easing line": {
|
|
504
504
|
stroke: "hsl(220, 14%, 71%)"
|
|
505
505
|
}
|
|
506
|
-
},
|
|
506
|
+
}, v = {
|
|
507
507
|
'code[class*="language-"]': {
|
|
508
508
|
background: "hsl(230, 1%, 98%)",
|
|
509
509
|
color: "hsl(230, 8%, 24%)",
|
|
@@ -991,45 +991,45 @@ const v = {
|
|
|
991
991
|
".prism-previewer-easing.prism-previewer-easing line": {
|
|
992
992
|
stroke: "hsl(230, 8%, 24%)"
|
|
993
993
|
}
|
|
994
|
-
},
|
|
995
|
-
code:
|
|
996
|
-
language:
|
|
997
|
-
showLineNumbers:
|
|
998
|
-
showCopyButton:
|
|
999
|
-
customStyle:
|
|
1000
|
-
onCopied:
|
|
994
|
+
}, x = ({
|
|
995
|
+
code: e,
|
|
996
|
+
language: n = "typescript",
|
|
997
|
+
showLineNumbers: t = !0,
|
|
998
|
+
showCopyButton: a = !0,
|
|
999
|
+
customStyle: i,
|
|
1000
|
+
onCopied: s
|
|
1001
1001
|
}) => {
|
|
1002
|
-
const [
|
|
1003
|
-
if (
|
|
1002
|
+
const [r, l] = g(!1), { mode: c } = p(), h = async () => {
|
|
1003
|
+
if (e)
|
|
1004
1004
|
try {
|
|
1005
|
-
await navigator.clipboard.writeText(
|
|
1006
|
-
} catch (
|
|
1007
|
-
console.error("Failed to copy code:",
|
|
1005
|
+
await navigator.clipboard.writeText(e), l(!0), setTimeout(() => l(!1), 2e3), s?.();
|
|
1006
|
+
} catch (d) {
|
|
1007
|
+
console.error("Failed to copy code:", d);
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
1010
|
-
return
|
|
1011
|
-
|
|
1012
|
-
|
|
1010
|
+
return e ? /* @__PURE__ */ o.jsxs(k, { sx: { position: "relative", width: "100%" }, children: [
|
|
1011
|
+
a && /* @__PURE__ */ o.jsx(
|
|
1012
|
+
u,
|
|
1013
1013
|
{
|
|
1014
|
-
onClick:
|
|
1014
|
+
onClick: h,
|
|
1015
1015
|
size: "small",
|
|
1016
1016
|
sx: {
|
|
1017
1017
|
position: "absolute",
|
|
1018
1018
|
top: 8,
|
|
1019
1019
|
right: 8,
|
|
1020
1020
|
zIndex: 1,
|
|
1021
|
-
color:
|
|
1021
|
+
color: r ? "success.main" : "text.primary",
|
|
1022
1022
|
backdropFilter: "blur(8px)"
|
|
1023
1023
|
},
|
|
1024
|
-
children:
|
|
1024
|
+
children: r ? /* @__PURE__ */ o.jsx(m, { fontSize: "small" }) : /* @__PURE__ */ o.jsx(f, { fontSize: "small" })
|
|
1025
1025
|
}
|
|
1026
1026
|
),
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
|
|
1027
|
+
/* @__PURE__ */ o.jsx(
|
|
1028
|
+
b,
|
|
1029
1029
|
{
|
|
1030
|
-
language:
|
|
1031
|
-
style:
|
|
1032
|
-
showLineNumbers:
|
|
1030
|
+
language: n,
|
|
1031
|
+
style: c === "dark" ? w : v,
|
|
1032
|
+
showLineNumbers: t,
|
|
1033
1033
|
customStyle: {
|
|
1034
1034
|
margin: 0,
|
|
1035
1035
|
borderRadius: "var(--s-shape-borderRadius)",
|
|
@@ -1037,25 +1037,17 @@ const v = {
|
|
|
1037
1037
|
backgroundColor: "var(--s-palette-background-paper)",
|
|
1038
1038
|
border: "1px solid",
|
|
1039
1039
|
borderColor: "var(--s-palette-divider)",
|
|
1040
|
-
...
|
|
1040
|
+
...i
|
|
1041
1041
|
},
|
|
1042
1042
|
wrapLines: !0,
|
|
1043
1043
|
wrapLongLines: !0,
|
|
1044
|
-
children:
|
|
1044
|
+
children: e
|
|
1045
1045
|
}
|
|
1046
1046
|
)
|
|
1047
1047
|
] }) : null;
|
|
1048
1048
|
};
|
|
1049
|
-
|
|
1050
|
-
try {
|
|
1051
|
-
l.displayName = "SCodeBlock", l.__docgenInfo = { description: "A code block component with syntax highlighting and built-in copy-to-clipboard functionality.", displayName: "SCodeBlock", props: { code: { defaultValue: null, description: "The code content to display and copy", name: "code", required: !0, type: { name: "string" } }, language: { defaultValue: { value: "typescript" }, description: "Programming language for syntax highlighting", name: "language", required: !1, type: { name: "string" } }, showLineNumbers: { defaultValue: { value: "true" }, description: "Whether to show line numbers", name: "showLineNumbers", required: !1, type: { name: "boolean" } }, showCopyButton: { defaultValue: { value: "true" }, description: "Whether to show copy button", name: "showCopyButton", required: !1, type: { name: "boolean" } }, customStyle: { defaultValue: null, description: "Custom style for the code block", name: "customStyle", required: !1, type: { name: "CSSProperties" } }, onCopied: { defaultValue: null, description: "Callback function triggered after code is successfully copied", name: "onCopied", required: !1, type: { name: "(() => void)" } } } };
|
|
1052
|
-
} catch {
|
|
1053
|
-
}
|
|
1054
|
-
try {
|
|
1055
|
-
scodeblock.displayName = "scodeblock", scodeblock.__docgenInfo = { description: "A code block component with syntax highlighting and built-in copy-to-clipboard functionality.", displayName: "scodeblock", props: { code: { defaultValue: null, description: "The code content to display and copy", name: "code", required: !0, type: { name: "string" } }, language: { defaultValue: { value: "typescript" }, description: "Programming language for syntax highlighting", name: "language", required: !1, type: { name: "string" } }, showLineNumbers: { defaultValue: { value: "true" }, description: "Whether to show line numbers", name: "showLineNumbers", required: !1, type: { name: "boolean" } }, showCopyButton: { defaultValue: { value: "true" }, description: "Whether to show copy button", name: "showCopyButton", required: !1, type: { name: "boolean" } }, customStyle: { defaultValue: null, description: "Custom style for the code block", name: "customStyle", required: !1, type: { name: "CSSProperties" } }, onCopied: { defaultValue: null, description: "Callback function triggered after code is successfully copied", name: "onCopied", required: !1, type: { name: "(() => void)" } } } };
|
|
1056
|
-
} catch {
|
|
1057
|
-
}
|
|
1049
|
+
x.displayName = "SCodeBlock";
|
|
1058
1050
|
export {
|
|
1059
|
-
|
|
1060
|
-
|
|
1051
|
+
x as SCodeBlock,
|
|
1052
|
+
x as default
|
|
1061
1053
|
};
|
|
@@ -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
|
+
}
|
|
@@ -1,131 +1,127 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Box as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { F as
|
|
7
|
-
import { c as C } from "../createSvgIcon-
|
|
8
|
-
import { E as
|
|
9
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as S, useEffect as R } from "react";
|
|
3
|
+
import { Box as c, Stack as x, Typography as g, IconButton as G, Button as F, Collapse as J } from "@mui/material";
|
|
4
|
+
import { SSkeleton as e } from "../s-skeleton/s-skeleton.js";
|
|
5
|
+
import { SAvatar as K } from "../s-avatar/s-avatar.js";
|
|
6
|
+
import { F as N } from "../Favorite-wp65zwWq.js";
|
|
7
|
+
import { c as C } from "../createSvgIcon-BKymXuBG.js";
|
|
8
|
+
import { E as O } from "../ExpandMore-DIGPB4Mj.js";
|
|
9
|
+
const Q = C(/* @__PURE__ */ t.jsx("path", {
|
|
10
10
|
d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
|
|
11
|
-
}), "ExpandLess"),
|
|
11
|
+
}), "ExpandLess"), U = C(/* @__PURE__ */ t.jsx("path", {
|
|
12
12
|
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"
|
|
13
|
-
}), "FavoriteBorder"),
|
|
13
|
+
}), "FavoriteBorder"), X = C(/* @__PURE__ */ t.jsx("path", {
|
|
14
14
|
d: "M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11"
|
|
15
|
-
}), "Reply"),
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
},
|
|
19
|
-
id:
|
|
20
|
-
userName:
|
|
21
|
-
userAvatar:
|
|
22
|
-
commentContent:
|
|
23
|
-
datetime:
|
|
24
|
-
likes:
|
|
25
|
-
isLiked:
|
|
26
|
-
replies:
|
|
27
|
-
totalReplies:
|
|
28
|
-
onLike:
|
|
29
|
-
onReply:
|
|
30
|
-
onToggleReplies:
|
|
31
|
-
showReplies:
|
|
15
|
+
}), "Reply"), Z = (o) => {
|
|
16
|
+
const d = /* @__PURE__ */ new Date(), j = typeof o == "string" ? new Date(o) : o, p = d.getTime() - j.getTime(), m = Math.floor(p / 1e3), n = Math.floor(m / 60), i = Math.floor(n / 60), s = Math.floor(i / 24), h = Math.floor(s / 7), a = Math.floor(s / 30), r = Math.floor(s / 365);
|
|
17
|
+
return m < 60 ? "just now" : n < 60 ? n === 1 ? "1 minute ago" : `${n} minutes ago` : i < 24 ? i === 1 ? "1 hour ago" : `${i} hours ago` : s < 7 ? s === 1 ? "1 day ago" : `${s} days ago` : h < 4 ? h === 1 ? "1 week ago" : `${h} weeks ago` : a < 12 ? a === 1 ? "1 month ago" : `${a} months ago` : r === 1 ? "1 year ago" : `${r} years ago`;
|
|
18
|
+
}, T = ({
|
|
19
|
+
id: o = Date.now(),
|
|
20
|
+
userName: d,
|
|
21
|
+
userAvatar: j,
|
|
22
|
+
commentContent: p,
|
|
23
|
+
datetime: m,
|
|
24
|
+
likes: n = 0,
|
|
25
|
+
isLiked: i = !1,
|
|
26
|
+
replies: s = [],
|
|
27
|
+
totalReplies: h,
|
|
28
|
+
onLike: a,
|
|
29
|
+
onReply: r,
|
|
30
|
+
onToggleReplies: L,
|
|
31
|
+
showReplies: u = !0,
|
|
32
32
|
avatarSize: f = 48,
|
|
33
|
-
level:
|
|
34
|
-
maxLevel:
|
|
35
|
-
loading:
|
|
36
|
-
children:
|
|
37
|
-
sx:
|
|
33
|
+
level: b = 0,
|
|
34
|
+
maxLevel: z = 3,
|
|
35
|
+
loading: H = !1,
|
|
36
|
+
children: k,
|
|
37
|
+
sx: $ = {}
|
|
38
38
|
}) => {
|
|
39
|
-
const [
|
|
40
|
-
w ? (
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
|
|
50
|
-
}, [
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
39
|
+
const [E, v] = S(n), [w, I] = S(i), [M, W] = S(!1), A = () => {
|
|
40
|
+
w ? (v((l) => Math.max(0, l - 1)), I(!1)) : (v((l) => l + 1), I(!0)), a && a(o);
|
|
41
|
+
}, P = () => {
|
|
42
|
+
r && r(o);
|
|
43
|
+
}, V = () => {
|
|
44
|
+
W(!M), L && L(o);
|
|
45
|
+
}, Y = Z(m), y = h ?? s.length, B = y > 0, D = Math.min(b, z) * 2;
|
|
46
|
+
return R(() => {
|
|
47
|
+
v(n);
|
|
48
|
+
}, [n]), R(() => {
|
|
49
|
+
I(i);
|
|
50
|
+
}, [i]), H ? /* @__PURE__ */ t.jsx(c, { sx: { pl: D, py: 1, ...$ }, children: /* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
|
|
51
|
+
/* @__PURE__ */ t.jsx(e, { component: "rounded-avatar", width: f, height: f }),
|
|
52
|
+
/* @__PURE__ */ t.jsxs(c, { sx: { flex: 1 }, children: [
|
|
53
|
+
/* @__PURE__ */ t.jsxs(x, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
|
|
54
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 120, height: 20 }),
|
|
55
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 80, height: 16 })
|
|
56
56
|
] }),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
|
|
58
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
|
|
59
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: "70%", height: 16, sx: { mb: 2 } }),
|
|
60
|
+
/* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
61
|
+
/* @__PURE__ */ t.jsx(e, { component: "icon-button" }),
|
|
62
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 20, height: 16 }),
|
|
63
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 60, height: 32 }),
|
|
64
|
+
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 80, height: 32 })
|
|
65
65
|
] })
|
|
66
66
|
] })
|
|
67
|
-
] }) }) : /* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
67
|
+
] }) }) : /* @__PURE__ */ t.jsxs(c, { sx: { pl: D, py: 1, ...$ }, children: [
|
|
68
|
+
/* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
|
|
69
|
+
/* @__PURE__ */ t.jsx(K, { avatar: j, name: d, size: f }),
|
|
70
|
+
/* @__PURE__ */ t.jsxs(c, { sx: { flex: 1 }, children: [
|
|
71
|
+
/* @__PURE__ */ t.jsxs(x, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
|
|
72
|
+
/* @__PURE__ */ t.jsx(g, { variant: "subtitle2", fontWeight: "600", children: d }),
|
|
73
|
+
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(g, { variant: "caption", children: Y }) })
|
|
74
74
|
] }),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
|
|
75
|
+
/* @__PURE__ */ t.jsx(g, { variant: "body2", sx: { mb: 2, lineHeight: 1.6 }, children: p }),
|
|
76
|
+
/* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
77
|
+
/* @__PURE__ */ t.jsx(
|
|
78
|
+
G,
|
|
79
79
|
{
|
|
80
80
|
size: "small",
|
|
81
81
|
onClick: A,
|
|
82
82
|
sx: {
|
|
83
83
|
color: w ? "error.main" : "text.secondary"
|
|
84
84
|
},
|
|
85
|
-
children: w ? /* @__PURE__ */
|
|
85
|
+
children: w ? /* @__PURE__ */ t.jsx(N, { fontSize: "small" }) : /* @__PURE__ */ t.jsx(U, { fontSize: "small" })
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
E > 0 && /* @__PURE__ */ t.jsx(g, { variant: "caption", children: E }),
|
|
89
|
+
/* @__PURE__ */ t.jsx(F, { size: "small", startIcon: /* @__PURE__ */ t.jsx(X, { fontSize: "small" }), onClick: P, variant: "text", children: "Reply" }),
|
|
90
|
+
B && u && /* @__PURE__ */ t.jsxs(
|
|
91
|
+
F,
|
|
92
92
|
{
|
|
93
93
|
size: "small",
|
|
94
|
-
startIcon:
|
|
95
|
-
onClick:
|
|
94
|
+
startIcon: M ? /* @__PURE__ */ t.jsx(Q, { fontSize: "small" }) : /* @__PURE__ */ t.jsx(O, { fontSize: "small" }),
|
|
95
|
+
onClick: V,
|
|
96
96
|
variant: "text",
|
|
97
97
|
children: [
|
|
98
|
-
|
|
98
|
+
y,
|
|
99
99
|
" ",
|
|
100
|
-
|
|
100
|
+
y === 1 ? "reply" : "replies"
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
] }),
|
|
105
|
-
|
|
105
|
+
k && /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: k })
|
|
106
106
|
] })
|
|
107
107
|
] }),
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
B && u && /* @__PURE__ */ t.jsx(J, { in: M, children: /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: s.map((l, q) => /* @__PURE__ */ t.jsx(
|
|
109
|
+
T,
|
|
110
110
|
{
|
|
111
111
|
...l,
|
|
112
|
-
level:
|
|
113
|
-
maxLevel:
|
|
114
|
-
onLike:
|
|
115
|
-
onReply:
|
|
116
|
-
showReplies:
|
|
112
|
+
level: b + 1,
|
|
113
|
+
maxLevel: z,
|
|
114
|
+
onLike: a,
|
|
115
|
+
onReply: r,
|
|
116
|
+
showReplies: u,
|
|
117
117
|
avatarSize: Math.max(32, f - 8)
|
|
118
118
|
},
|
|
119
|
-
l.id || `reply-${
|
|
119
|
+
l.id || `reply-${q}`
|
|
120
120
|
)) }) })
|
|
121
121
|
] });
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
try {
|
|
125
|
-
x.displayName = "SCommentMessage", x.__docgenInfo = { description: "A comprehensive comment message component with avatar display, user information, relative timestamps, like functionality, and nested reply support.", displayName: "SCommentMessage", props: { id: { defaultValue: { value: "Date.now()" }, description: "Unique identifier for the comment", name: "id", required: !1, type: { name: "string | number" } }, userName: { defaultValue: null, description: "Name of the user who posted the comment", name: "userName", required: !0, type: { name: "string" } }, userAvatar: { defaultValue: null, description: "URL of the user avatar image", name: "userAvatar", required: !1, type: { name: "string" } }, commentContent: { defaultValue: null, description: "The text content of the comment", name: "commentContent", required: !0, type: { name: "string" } }, datetime: { defaultValue: null, description: "Date/time when the comment was posted", name: "datetime", required: !0, type: { name: "string | Date" } }, likes: { defaultValue: { value: "0" }, description: "Number of likes the comment has received", name: "likes", required: !1, type: { name: "number" } }, isLiked: { defaultValue: { value: "false" }, description: "Whether the current user has liked this comment", name: "isLiked", required: !1, type: { name: "boolean" } }, replies: { defaultValue: { value: "[]" }, description: "Array of reply comments", name: "replies", required: !1, type: { name: "SCommentMessageProps[]" } }, totalReplies: { defaultValue: null, description: "Total count of replies to display", name: "totalReplies", required: !1, type: { name: "number" } }, onLike: { defaultValue: null, description: "Callback function triggered when the like button is clicked", name: "onLike", required: !1, type: { name: "((commentId: string | number) => void)" } }, onReply: { defaultValue: null, description: "Callback function triggered when the reply button is clicked", name: "onReply", required: !1, type: { name: "((commentId: string | number, parentId?: string | number) => void)" } }, onToggleReplies: { defaultValue: null, description: "Callback function triggered when the expand/collapse replies button is clicked", name: "onToggleReplies", required: !1, type: { name: "((commentId: string | number) => void)" } }, showReplies: { defaultValue: { value: "true" }, description: "Whether to show replies and the expand/collapse functionality", name: "showReplies", required: !1, type: { name: "boolean" } }, avatarSize: { defaultValue: { value: "48" }, description: "Size of the avatar in pixels", name: "avatarSize", required: !1, type: { name: "number" } }, level: { defaultValue: { value: "0" }, description: "Current nesting level of the comment", name: "level", required: !1, type: { name: "number" } }, maxLevel: { defaultValue: { value: "3" }, description: "Maximum nesting level allowed before stopping further indentation", name: "maxLevel", required: !1, type: { name: "number" } }, loading: { defaultValue: { value: "false" }, description: "Whether to show skeleton loading state instead of content", name: "loading", required: !1, type: { name: "boolean" } }, children: { defaultValue: null, description: "Custom content to display below the comment actions", name: "children", required: !1, type: { name: "ReactNode" } }, sx: { defaultValue: { value: "{}" }, description: "Material-UI sx prop for custom styling", name: "sx", required: !1, type: { name: "SxProps" } } } };
|
|
126
|
-
} catch {
|
|
127
|
-
}
|
|
123
|
+
T.displayName = "SCommentMessage";
|
|
128
124
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
T as SCommentMessage,
|
|
126
|
+
T as default
|
|
131
127
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Paper as
|
|
4
|
-
import { C as
|
|
5
|
-
const
|
|
6
|
-
const [
|
|
7
|
-
if (
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
import { Paper as p, Box as d, IconButton as x, Typography as m } from "@mui/material";
|
|
4
|
+
import { C as u, a as h } from "../ContentCopy-2xxDThyB.js";
|
|
5
|
+
const f = ({ text: o, typographyProps: r, onCopied: a, paperProps: i }) => {
|
|
6
|
+
const [t, s] = l(!1), n = async () => {
|
|
7
|
+
if (o)
|
|
8
8
|
try {
|
|
9
|
-
await navigator.clipboard.writeText(
|
|
10
|
-
} catch (
|
|
11
|
-
console.error("Failed to copy text:",
|
|
9
|
+
await navigator.clipboard.writeText(o), s(!0), setTimeout(() => s(!1), 2e3), a?.();
|
|
10
|
+
} catch (c) {
|
|
11
|
+
console.error("Failed to copy text:", c);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
return
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
14
|
+
return o ? /* @__PURE__ */ e.jsx(p, { sx: { p: 2, border: "1px dashed", borderColor: "divider" }, ...i, children: /* @__PURE__ */ e.jsxs(d, { sx: { position: "relative" }, children: [
|
|
15
|
+
/* @__PURE__ */ e.jsx(
|
|
16
|
+
x,
|
|
17
17
|
{
|
|
18
|
-
onClick:
|
|
18
|
+
onClick: n,
|
|
19
19
|
size: "small",
|
|
20
20
|
sx: {
|
|
21
21
|
position: "absolute",
|
|
@@ -24,14 +24,14 @@ const r = ({ text: e, typographyProps: o, onCopied: a, paperProps: s }) => {
|
|
|
24
24
|
right: 0,
|
|
25
25
|
zIndex: 1,
|
|
26
26
|
// Ensure button appears above text
|
|
27
|
-
color:
|
|
27
|
+
color: t ? "success.main" : "inherit"
|
|
28
28
|
// Green when copied
|
|
29
29
|
},
|
|
30
|
-
children:
|
|
30
|
+
children: t ? /* @__PURE__ */ e.jsx(u, {}) : /* @__PURE__ */ e.jsx(h, {})
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
/* @__PURE__ */ e.jsx(
|
|
34
|
+
m,
|
|
35
35
|
{
|
|
36
36
|
variant: "body1",
|
|
37
37
|
sx: {
|
|
@@ -39,26 +39,18 @@ const r = ({ text: e, typographyProps: o, onCopied: a, paperProps: s }) => {
|
|
|
39
39
|
// Preserve whitespace and line breaks
|
|
40
40
|
wordBreak: "break-word",
|
|
41
41
|
// Handle long words gracefully
|
|
42
|
-
...
|
|
42
|
+
...r?.sx
|
|
43
43
|
// Allow custom styling override
|
|
44
44
|
},
|
|
45
45
|
color: "text.secondary",
|
|
46
|
-
...
|
|
47
|
-
children:
|
|
46
|
+
...r,
|
|
47
|
+
children: o
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
] }) }) : null;
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
try {
|
|
54
|
-
r.displayName = "SCopyableText", r.__docgenInfo = { description: "A text display component with built-in copy-to-clipboard functionality and visual feedback.", displayName: "SCopyableText", props: { text: { defaultValue: null, description: "The text content to display and copy", name: "text", required: !1, type: { name: "string" } }, typographyProps: { defaultValue: null, description: "Props to pass to the Typography component for styling", name: "typographyProps", required: !1, type: { name: "TypographyProps" } }, onCopied: { defaultValue: null, description: "Callback function triggered after text is successfully copied", name: "onCopied", required: !1, type: { name: "(() => void)" } }, paperProps: { defaultValue: null, description: "Props to pass to the Paper component container", name: "paperProps", required: !1, type: { name: "PaperProps" } } } };
|
|
55
|
-
} catch {
|
|
56
|
-
}
|
|
57
|
-
try {
|
|
58
|
-
scopyabletext.displayName = "scopyabletext", scopyabletext.__docgenInfo = { description: "A text display component with built-in copy-to-clipboard functionality and visual feedback.", displayName: "scopyabletext", props: { text: { defaultValue: null, description: "The text content to display and copy", name: "text", required: !1, type: { name: "string" } }, typographyProps: { defaultValue: null, description: "Props to pass to the Typography component for styling", name: "typographyProps", required: !1, type: { name: "TypographyProps" } }, onCopied: { defaultValue: null, description: "Callback function triggered after text is successfully copied", name: "onCopied", required: !1, type: { name: "(() => void)" } }, paperProps: { defaultValue: null, description: "Props to pass to the Paper component container", name: "paperProps", required: !1, type: { name: "PaperProps" } } } };
|
|
59
|
-
} catch {
|
|
60
|
-
}
|
|
52
|
+
f.displayName = "SCopyableText";
|
|
61
53
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
f as SCopyableText,
|
|
55
|
+
f as default
|
|
64
56
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { SFlexBox as
|
|
4
|
-
const
|
|
5
|
-
digit:
|
|
6
|
-
title:
|
|
7
|
-
size:
|
|
8
|
-
color:
|
|
9
|
-
animation:
|
|
10
|
-
sx:
|
|
11
|
-
digitSx:
|
|
12
|
-
titleSx:
|
|
13
|
-
showSeparator:
|
|
14
|
-
separator:
|
|
15
|
-
digitFormat:
|
|
16
|
-
hidden:
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { Typography as r, Fade as H, Slide as v } from "@mui/material";
|
|
3
|
+
import { SFlexBox as c } from "../s-flex-box/s-flex-box.js";
|
|
4
|
+
const B = ({
|
|
5
|
+
digit: d = 0,
|
|
6
|
+
title: m = "",
|
|
7
|
+
size: x = "medium",
|
|
8
|
+
color: l = "inherit",
|
|
9
|
+
animation: o = "none",
|
|
10
|
+
sx: g,
|
|
11
|
+
digitSx: f,
|
|
12
|
+
titleSx: p,
|
|
13
|
+
showSeparator: h = !1,
|
|
14
|
+
separator: u = ":",
|
|
15
|
+
digitFormat: S = "default",
|
|
16
|
+
hidden: j = !1
|
|
17
17
|
}) => {
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
switch (
|
|
18
|
+
if (j) return null;
|
|
19
|
+
const y = (a) => S === "padded" ? a.toString().padStart(2, "0") : a.toString(), e = (() => {
|
|
20
|
+
switch (x) {
|
|
21
21
|
case "small":
|
|
22
22
|
return {
|
|
23
23
|
digit: { fontSize: "1.5rem", lineHeight: 1.2 },
|
|
@@ -34,22 +34,22 @@ const r = ({
|
|
|
34
34
|
title: { fontSize: "0.875rem", letterSpacing: "0.08em" }
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
})(), i =
|
|
38
|
-
|
|
37
|
+
})(), i = y(d), n = /* @__PURE__ */ t.jsx(
|
|
38
|
+
r,
|
|
39
39
|
{
|
|
40
40
|
variant: "h3",
|
|
41
41
|
component: "span",
|
|
42
42
|
sx: {
|
|
43
43
|
fontWeight: 700,
|
|
44
|
-
color:
|
|
44
|
+
color: l === "inherit" ? "text.primary" : `${l}.main`,
|
|
45
45
|
width: "70px",
|
|
46
|
-
...
|
|
47
|
-
...
|
|
46
|
+
...e.digit,
|
|
47
|
+
...f
|
|
48
48
|
},
|
|
49
49
|
children: i
|
|
50
50
|
}
|
|
51
|
-
),
|
|
52
|
-
|
|
51
|
+
), z = /* @__PURE__ */ t.jsx(
|
|
52
|
+
r,
|
|
53
53
|
{
|
|
54
54
|
component: "span",
|
|
55
55
|
sx: {
|
|
@@ -58,55 +58,47 @@ const r = ({
|
|
|
58
58
|
textTransform: "uppercase",
|
|
59
59
|
display: "block",
|
|
60
60
|
mt: 0.5,
|
|
61
|
-
...
|
|
62
|
-
...
|
|
61
|
+
...e.title,
|
|
62
|
+
...p
|
|
63
63
|
},
|
|
64
|
-
children:
|
|
64
|
+
children: m
|
|
65
65
|
}
|
|
66
|
-
), s = /* @__PURE__ */
|
|
67
|
-
|
|
66
|
+
), s = /* @__PURE__ */ t.jsxs(
|
|
67
|
+
c,
|
|
68
68
|
{
|
|
69
69
|
flexDirection: "column",
|
|
70
70
|
alignItems: "center",
|
|
71
71
|
sx: {
|
|
72
72
|
textAlign: "center",
|
|
73
73
|
minWidth: "fit-content",
|
|
74
|
-
...
|
|
74
|
+
...g
|
|
75
75
|
},
|
|
76
76
|
children: [
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
o === "fade" ? /* @__PURE__ */ t.jsx(H, { in: !0, timeout: 300, children: /* @__PURE__ */ t.jsx("div", { children: n }) }, i) : o === "slide" ? /* @__PURE__ */ t.jsx(v, { in: !0, direction: "up", timeout: 300, children: /* @__PURE__ */ t.jsx("div", { children: n }) }, i) : n,
|
|
78
|
+
z
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
return
|
|
82
|
+
return h ? /* @__PURE__ */ t.jsxs(c, { alignItems: "center", children: [
|
|
83
83
|
s,
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
84
|
+
/* @__PURE__ */ t.jsx(
|
|
85
|
+
r,
|
|
86
86
|
{
|
|
87
87
|
variant: "h3",
|
|
88
88
|
sx: {
|
|
89
89
|
color: "text.secondary",
|
|
90
|
-
...
|
|
90
|
+
...e.digit,
|
|
91
91
|
lineHeight: 1,
|
|
92
92
|
alignSelf: "flex-start",
|
|
93
93
|
mt: 0.5
|
|
94
94
|
},
|
|
95
|
-
children:
|
|
95
|
+
children: u
|
|
96
96
|
}
|
|
97
97
|
)
|
|
98
98
|
] }) : s;
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
try {
|
|
102
|
-
r.displayName = "SCountBox", r.__docgenInfo = { description: "An individual count box component that displays a single time unit with optional animations.", displayName: "SCountBox", props: { digit: { defaultValue: { value: "0" }, description: "The numeric value to display", name: "digit", required: !1, type: { name: "number" } }, title: { defaultValue: { value: "" }, description: "The label/title for this time unit", name: "title", required: !1, type: { name: "string" } }, size: { defaultValue: { value: "medium" }, description: "Size variant for the count box", name: "size", required: !1, type: { name: "enum", value: [{ value: '"small"' }, { value: '"medium"' }, { value: '"large"' }] } }, color: { defaultValue: { value: "inherit" }, description: "Color variant for the count box", name: "color", required: !1, type: { name: "enum", value: [{ value: '"inherit"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"success"' }, { value: '"error"' }, { value: '"info"' }, { value: '"warning"' }] } }, animation: { defaultValue: { value: "none" }, description: "Animation type for value changes", name: "animation", required: !1, type: { name: "enum", value: [{ value: '"none"' }, { value: '"fade"' }, { value: '"slide"' }] } }, sx: { defaultValue: null, description: "Custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, digitSx: { defaultValue: null, description: "Custom digit styling", name: "digitSx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "Custom title styling", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, showSeparator: { defaultValue: { value: "false" }, description: "Show separator after this box", name: "showSeparator", required: !1, type: { name: "boolean" } }, separator: { defaultValue: { value: ":" }, description: "Custom separator element", name: "separator", required: !1, type: { name: "ReactNode" } }, digitFormat: { defaultValue: { value: "default" }, description: "Format for displaying the digit (e.g., '00' for zero-padding)", name: "digitFormat", required: !1, type: { name: "enum", value: [{ value: '"default"' }, { value: '"padded"' }] } }, hidden: { defaultValue: { value: "false" }, description: "Whether this count box is hidden", name: "hidden", required: !1, type: { name: "boolean" } } } };
|
|
103
|
-
} catch {
|
|
104
|
-
}
|
|
105
|
-
try {
|
|
106
|
-
scountbox.displayName = "scountbox", scountbox.__docgenInfo = { description: "An individual count box component that displays a single time unit with optional animations.", displayName: "scountbox", props: { digit: { defaultValue: { value: "0" }, description: "The numeric value to display", name: "digit", required: !1, type: { name: "number" } }, title: { defaultValue: { value: "" }, description: "The label/title for this time unit", name: "title", required: !1, type: { name: "string" } }, size: { defaultValue: { value: "medium" }, description: "Size variant for the count box", name: "size", required: !1, type: { name: "enum", value: [{ value: '"small"' }, { value: '"medium"' }, { value: '"large"' }] } }, color: { defaultValue: { value: "inherit" }, description: "Color variant for the count box", name: "color", required: !1, type: { name: "enum", value: [{ value: '"inherit"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"success"' }, { value: '"error"' }, { value: '"info"' }, { value: '"warning"' }] } }, animation: { defaultValue: { value: "none" }, description: "Animation type for value changes", name: "animation", required: !1, type: { name: "enum", value: [{ value: '"none"' }, { value: '"fade"' }, { value: '"slide"' }] } }, sx: { defaultValue: null, description: "Custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, digitSx: { defaultValue: null, description: "Custom digit styling", name: "digitSx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "Custom title styling", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, showSeparator: { defaultValue: { value: "false" }, description: "Show separator after this box", name: "showSeparator", required: !1, type: { name: "boolean" } }, separator: { defaultValue: { value: ":" }, description: "Custom separator element", name: "separator", required: !1, type: { name: "ReactNode" } }, digitFormat: { defaultValue: { value: "default" }, description: "Format for displaying the digit (e.g., '00' for zero-padding)", name: "digitFormat", required: !1, type: { name: "enum", value: [{ value: '"default"' }, { value: '"padded"' }] } }, hidden: { defaultValue: { value: "false" }, description: "Whether this count box is hidden", name: "hidden", required: !1, type: { name: "boolean" } } } };
|
|
107
|
-
} catch {
|
|
108
|
-
}
|
|
100
|
+
B.displayName = "SCountBox";
|
|
109
101
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
B as SCountBox,
|
|
103
|
+
B as default
|
|
112
104
|
};
|