@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.
Files changed (206) hide show
  1. package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
  2. package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
  3. package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
  4. package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
  5. package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
  6. package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
  7. package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
  8. package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
  9. package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
  10. package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
  11. package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
  12. package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
  13. package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
  14. package/dist/Paper-DnctZB5U.js +689 -0
  15. package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
  16. package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
  17. package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
  18. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  19. package/dist/assets/s-overlay-scrollbar.css +1 -9
  20. package/dist/createSvgIcon-BKymXuBG.js +242 -0
  21. package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
  22. package/dist/defaultTheme-LSr-S9un.js +5 -0
  23. package/dist/entries/carousel.d.ts +10 -0
  24. package/dist/entries/carousel.js +4 -0
  25. package/dist/entries/chat.d.ts +9 -0
  26. package/dist/entries/chat.js +4 -0
  27. package/dist/entries/code.d.ts +9 -0
  28. package/dist/entries/code.js +4 -0
  29. package/dist/entries/core.d.ts +100 -0
  30. package/dist/entries/core.js +122 -0
  31. package/dist/entries/dates.d.ts +16 -0
  32. package/dist/entries/dates.js +12 -0
  33. package/dist/entries/dropzone.d.ts +9 -0
  34. package/dist/entries/dropzone.js +4 -0
  35. package/dist/entries/editor.d.ts +12 -0
  36. package/dist/entries/editor.js +4 -0
  37. package/dist/entries/gallery.d.ts +17 -0
  38. package/dist/entries/gallery.js +13 -0
  39. package/dist/entries/i18n.d.ts +13 -0
  40. package/dist/entries/i18n.js +8 -0
  41. package/dist/entries/motion.d.ts +29 -0
  42. package/dist/entries/motion.js +28 -0
  43. package/dist/entries/scrollbar.d.ts +9 -0
  44. package/dist/entries/scrollbar.js +4 -0
  45. package/dist/entries/stripe.d.ts +10 -0
  46. package/dist/entries/stripe.js +10 -0
  47. package/dist/extendSxProp-DitxZ8We.js +36 -0
  48. package/dist/hooks/index.js +8 -9
  49. package/dist/hooks/use-is-passed-position.js +10 -10
  50. package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
  51. package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
  52. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
  53. package/dist/main.d.ts +29 -145
  54. package/dist/main.js +187 -187
  55. package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
  56. package/dist/resolveProps-BDH0VJjn.js +39 -0
  57. package/dist/s-accordion/package.json +5 -5
  58. package/dist/s-accordion/s-accordion.js +374 -358
  59. package/dist/s-action-overlay/package.json +5 -5
  60. package/dist/s-action-overlay/s-action-overlay.js +64 -79
  61. package/dist/s-ai-tool-bar/package.json +5 -5
  62. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
  63. package/dist/s-autocomplete/s-autocomplete.js +19 -25
  64. package/dist/s-avatar/package.json +5 -5
  65. package/dist/s-avatar/s-avatar.js +14 -25
  66. package/dist/s-blur-text/package.json +5 -5
  67. package/dist/s-blur-text/s-blur-text.js +55 -59
  68. package/dist/s-breadcrumbs/package.json +5 -5
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
  70. package/dist/s-button/package.json +5 -5
  71. package/dist/s-button/s-button.js +7 -15
  72. package/dist/s-button-link/s-button-link.js +28 -36
  73. package/dist/s-carousel/package.json +4 -4
  74. package/dist/s-carousel/s-carousel.js +267 -280
  75. package/dist/s-category-card/package.json +4 -4
  76. package/dist/s-category-card/s-category-card.js +60 -77
  77. package/dist/s-chat-input/package.json +5 -5
  78. package/dist/s-chat-input/s-chat-input.d.ts +4 -0
  79. package/dist/s-chat-input/s-chat-input.js +103 -109
  80. package/dist/s-chat-message/s-chat-message.js +111 -120
  81. package/dist/s-checkbox/s-checkbox.js +12 -20
  82. package/dist/s-chip/package.json +5 -5
  83. package/dist/s-chip/s-chip.js +7 -15
  84. package/dist/s-chips/s-chips.js +47 -56
  85. package/dist/s-code-block/package.json +5 -5
  86. package/dist/s-code-block/s-code-block.js +35 -43
  87. package/dist/s-comment-message/package.json +5 -5
  88. package/dist/s-comment-message/s-comment-message.js +90 -94
  89. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  90. package/dist/s-countdown/s-count-box.js +42 -50
  91. package/dist/s-countdown/s-count-down.js +79 -107
  92. package/dist/s-data-table/s-data-table.js +374 -384
  93. package/dist/s-date-picker/s-date-picker.js +164 -164
  94. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  95. package/dist/s-dialog/s-dialog.js +24 -32
  96. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  97. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  98. package/dist/s-empty/s-empty.js +6 -14
  99. package/dist/s-error/s-error.js +9 -17
  100. package/dist/s-error-layout/s-error-layout.js +38 -47
  101. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  102. package/dist/s-file-icon/s-file-icon.js +9 -13
  103. package/dist/s-flex-box/s-flex-box.js +6 -14
  104. package/dist/s-form/s-form.js +11 -19
  105. package/dist/s-gallery/index.js +3 -33
  106. package/dist/s-gallery/s-gallery.js +91 -114
  107. package/dist/s-glow-button/s-glow-button.js +22 -26
  108. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  109. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  110. package/dist/s-icon-button/s-icon-button.js +6 -14
  111. package/dist/s-image-comparison/package.json +5 -5
  112. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  113. package/dist/s-image-modal/package.json +5 -5
  114. package/dist/s-image-modal/s-image-modal.js +137 -150
  115. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  116. package/dist/s-label/s-label.js +12 -20
  117. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  118. package/dist/s-lazy-image/index.js +2 -10
  119. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  120. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  121. package/dist/s-moving-border/s-moving-border.js +52 -67
  122. package/dist/s-multi-select/s-multi-select.js +43 -51
  123. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  124. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  125. package/dist/s-pagination/s-pagination.js +13 -17
  126. package/dist/s-pixel-reveal/package.json +5 -5
  127. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  128. package/dist/s-radial-pulse-animate/package.json +5 -5
  129. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  130. package/dist/s-rating/package.json +5 -5
  131. package/dist/s-rating/s-rating.js +7 -15
  132. package/dist/s-review/package.json +5 -5
  133. package/dist/s-review/s-review.js +101 -106
  134. package/dist/s-scroll-reveal/package.json +5 -5
  135. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  136. package/dist/s-scroll-to-top/package.json +5 -5
  137. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  138. package/dist/s-scroll-velocity/package.json +5 -5
  139. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  140. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  141. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  142. package/dist/s-select/s-select.js +67 -75
  143. package/dist/s-select-list/s-select-list.js +28 -32
  144. package/dist/s-skeleton/s-skeleton.js +20 -28
  145. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  146. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  147. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  148. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  149. package/dist/s-stripe/s-stripe-number.js +8 -12
  150. package/dist/s-stripe/s-stripe.d.ts +2 -2
  151. package/dist/s-stripe/s-stripe.js +17 -26
  152. package/dist/s-stripe/stripe-input.js +25 -29
  153. package/dist/s-tabs/package.json +3 -3
  154. package/dist/s-tabs/s-tab-panel.js +17 -25
  155. package/dist/s-tabs/s-tab.js +5 -9
  156. package/dist/s-tabs/s-tabs.js +19 -27
  157. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  158. package/dist/s-text-editor/s-text-editor.js +33 -45
  159. package/dist/s-text-field/s-text-field.js +31 -40
  160. package/dist/s-text-shimmer/package.json +4 -4
  161. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  162. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  163. package/dist/s-theme-demo/package.json +5 -5
  164. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  165. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  166. package/dist/s-theme-switch/package.json +4 -4
  167. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  168. package/dist/s-tip/s-tip.js +14 -22
  169. package/dist/s-two-pane-layout/index.js +2 -10
  170. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  171. package/dist/s-typewriter-text/package.json +5 -5
  172. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  173. package/dist/s-zoom-image/index.js +2 -10
  174. package/dist/s-zoom-image/package.json +5 -5
  175. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  176. package/dist/styled-B0KflPi-.js +203 -0
  177. package/dist/theme/components/alert.d.ts +484 -264
  178. package/dist/theme/components/avatar.js +2 -2
  179. package/dist/theme/components/button.d.ts +726 -396
  180. package/dist/theme/components/chip.js +2 -2
  181. package/dist/theme/components/components.js +14 -12
  182. package/dist/theme/components/icon-button.d.ts +6191 -0
  183. package/dist/theme/components/icon-button.js +90 -0
  184. package/dist/theme/customizations/data-display.js +1 -1
  185. package/dist/theme/customizations/inputs.js +2 -2
  186. package/dist/theme/customizations/navigation.js +2 -2
  187. package/dist/theme/theme-primitives.d.ts +8 -246
  188. package/dist/theme/theme-primitives.js +76 -87
  189. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  190. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  191. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  192. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  193. package/dist/utils/dayjs.js +7 -7
  194. package/dist/utils/logger.js +29 -32
  195. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  196. package/package.json +240 -81
  197. package/README.md +0 -13
  198. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  199. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  200. package/dist/Paper-hkbPWyBT.js +0 -553
  201. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  202. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  203. package/dist/extendSxProp-BKWjdW12.js +0 -37
  204. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  205. package/dist/resolveProps-61uUKnlS.js +0 -52
  206. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,9 +1,9 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as u } from "react";
3
- import { useColorScheme as g, Box as b, IconButton as k } from "@mui/material";
4
- import { Prism as m } from "react-syntax-highlighter";
5
- import { C as f, a as w } from "../ContentCopy-7nFBtjhs.js";
6
- const v = {
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
- }, y = {
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
- }, l = ({
995
- code: o,
996
- language: a = "typescript",
997
- showLineNumbers: i = !0,
998
- showCopyButton: s = !0,
999
- customStyle: c,
1000
- onCopied: r
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 [n, t] = u(!1), { mode: h } = g(), d = async () => {
1003
- if (o)
1002
+ const [r, l] = g(!1), { mode: c } = p(), h = async () => {
1003
+ if (e)
1004
1004
  try {
1005
- await navigator.clipboard.writeText(o), t(!0), setTimeout(() => t(!1), 2e3), r == null || r();
1006
- } catch (p) {
1007
- console.error("Failed to copy code:", p);
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 o ? /* @__PURE__ */ e.jsxs(b, { sx: { position: "relative", width: "100%" }, children: [
1011
- s && /* @__PURE__ */ e.jsx(
1012
- k,
1010
+ return e ? /* @__PURE__ */ o.jsxs(k, { sx: { position: "relative", width: "100%" }, children: [
1011
+ a && /* @__PURE__ */ o.jsx(
1012
+ u,
1013
1013
  {
1014
- onClick: d,
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: n ? "success.main" : "text.primary",
1021
+ color: r ? "success.main" : "text.primary",
1022
1022
  backdropFilter: "blur(8px)"
1023
1023
  },
1024
- children: n ? /* @__PURE__ */ e.jsx(f, { fontSize: "small" }) : /* @__PURE__ */ e.jsx(w, { fontSize: "small" })
1024
+ children: r ? /* @__PURE__ */ o.jsx(m, { fontSize: "small" }) : /* @__PURE__ */ o.jsx(f, { fontSize: "small" })
1025
1025
  }
1026
1026
  ),
1027
- /* @__PURE__ */ e.jsx(
1028
- m,
1027
+ /* @__PURE__ */ o.jsx(
1028
+ b,
1029
1029
  {
1030
- language: a,
1031
- style: h === "dark" ? v : y,
1032
- showLineNumbers: i,
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
- ...c
1040
+ ...i
1041
1041
  },
1042
1042
  wrapLines: !0,
1043
1043
  wrapLongLines: !0,
1044
- children: o
1044
+ children: e
1045
1045
  }
1046
1046
  )
1047
1047
  ] }) : null;
1048
1048
  };
1049
- l.displayName = "SCodeBlock";
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
- l as SCodeBlock,
1060
- l as default
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 e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as M, useEffect as _ } from "react";
3
- import { Box as d, Stack as m, Typography as h, IconButton as U, Button as N, Collapse as H } from "@mui/material";
4
- import { SAvatar as Y } from "../s-avatar/s-avatar.js";
5
- import { SSkeleton as t } from "../s-skeleton/s-skeleton.js";
6
- import { F as G } from "../Favorite-DS5Gpq2s.js";
7
- import { c as C } from "../createSvgIcon-DxwgGAVe.js";
8
- import { E as J } from "../ExpandMore-DTWX_mHf.js";
9
- const K = C(/* @__PURE__ */ e.jsx("path", {
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"), O = C(/* @__PURE__ */ e.jsx("path", {
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"), Q = C(/* @__PURE__ */ e.jsx("path", {
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"), X = (a) => {
16
- const u = /* @__PURE__ */ new Date(), g = typeof a == "string" ? new Date(a) : a, v = u.getTime() - g.getTime(), p = Math.floor(v / 1e3), i = Math.floor(p / 60), s = Math.floor(i / 60), n = Math.floor(s / 24), c = Math.floor(n / 7), r = Math.floor(n / 30), o = Math.floor(n / 365);
17
- return p < 60 ? "just now" : i < 60 ? i === 1 ? "1 minute ago" : `${i} minutes ago` : s < 24 ? s === 1 ? "1 hour ago" : `${s} hours ago` : n < 7 ? n === 1 ? "1 day ago" : `${n} days ago` : c < 4 ? c === 1 ? "1 week ago" : `${c} weeks ago` : r < 12 ? r === 1 ? "1 month ago" : `${r} months ago` : o === 1 ? "1 year ago" : `${o} years ago`;
18
- }, x = ({
19
- id: a = Date.now(),
20
- userName: u,
21
- userAvatar: g,
22
- commentContent: v,
23
- datetime: p,
24
- likes: i = 0,
25
- isLiked: s = !1,
26
- replies: n = [],
27
- totalReplies: c,
28
- onLike: r,
29
- onReply: o,
30
- onToggleReplies: q,
31
- showReplies: y = !0,
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: S = 0,
34
- maxLevel: V = 3,
35
- loading: $ = !1,
36
- children: L,
37
- sx: R = {}
33
+ level: b = 0,
34
+ maxLevel: z = 3,
35
+ loading: H = !1,
36
+ children: k,
37
+ sx: $ = {}
38
38
  }) => {
39
- const [z, j] = M(i), [w, b] = M(s), [I, E] = M(!1), A = () => {
40
- w ? (j((l) => Math.max(0, l - 1)), b(!1)) : (j((l) => l + 1), b(!0)), r && r(a);
41
- }, B = () => {
42
- o && o(a);
43
- }, W = () => {
44
- E(!I), q && q(a);
45
- }, F = X(p), k = c ?? n.length, D = k > 0, T = Math.min(S, V) * 2;
46
- return _(() => {
47
- j(i);
48
- }, [i]), _(() => {
49
- b(s);
50
- }, [s]), $ ? /* @__PURE__ */ e.jsx(d, { sx: { pl: T, py: 1, ...R }, children: /* @__PURE__ */ e.jsxs(m, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
51
- /* @__PURE__ */ e.jsx(t, { component: "rounded-avatar", width: f, height: f }),
52
- /* @__PURE__ */ e.jsxs(d, { sx: { flex: 1 }, children: [
53
- /* @__PURE__ */ e.jsxs(m, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
54
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: 120, height: 20 }),
55
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: 80, height: 16 })
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__ */ e.jsx(t, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
58
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
59
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: "70%", height: 16, sx: { mb: 2 } }),
60
- /* @__PURE__ */ e.jsxs(m, { direction: "row", spacing: 1, alignItems: "center", children: [
61
- /* @__PURE__ */ e.jsx(t, { component: "icon-button" }),
62
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: 20, height: 16 }),
63
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: 60, height: 32 }),
64
- /* @__PURE__ */ e.jsx(t, { variant: "text", width: 80, height: 32 })
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__ */ e.jsxs(d, { sx: { pl: T, py: 1, ...R }, children: [
68
- /* @__PURE__ */ e.jsxs(m, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
69
- /* @__PURE__ */ e.jsx(Y, { avatar: g, name: u, size: f }),
70
- /* @__PURE__ */ e.jsxs(d, { sx: { flex: 1 }, children: [
71
- /* @__PURE__ */ e.jsxs(m, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
72
- /* @__PURE__ */ e.jsx(h, { variant: "subtitle2", fontWeight: "600", children: u }),
73
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(h, { variant: "caption", children: F }) })
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__ */ e.jsx(h, { variant: "body2", sx: { mb: 2, lineHeight: 1.6 }, children: v }),
76
- /* @__PURE__ */ e.jsxs(m, { direction: "row", spacing: 1, alignItems: "center", children: [
77
- /* @__PURE__ */ e.jsx(
78
- U,
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__ */ e.jsx(G, { fontSize: "small" }) : /* @__PURE__ */ e.jsx(O, { fontSize: "small" })
85
+ children: w ? /* @__PURE__ */ t.jsx(N, { fontSize: "small" }) : /* @__PURE__ */ t.jsx(U, { fontSize: "small" })
86
86
  }
87
87
  ),
88
- z > 0 && /* @__PURE__ */ e.jsx(h, { variant: "caption", children: z }),
89
- /* @__PURE__ */ e.jsx(N, { size: "small", startIcon: /* @__PURE__ */ e.jsx(Q, { fontSize: "small" }), onClick: B, variant: "text", children: "Reply" }),
90
- D && y && /* @__PURE__ */ e.jsxs(
91
- N,
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: I ? /* @__PURE__ */ e.jsx(K, { fontSize: "small" }) : /* @__PURE__ */ e.jsx(J, { fontSize: "small" }),
95
- onClick: W,
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
- k,
98
+ y,
99
99
  " ",
100
- k === 1 ? "reply" : "replies"
100
+ y === 1 ? "reply" : "replies"
101
101
  ]
102
102
  }
103
103
  )
104
104
  ] }),
105
- L && /* @__PURE__ */ e.jsx(d, { sx: { mt: 2 }, children: L })
105
+ k && /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: k })
106
106
  ] })
107
107
  ] }),
108
- D && y && /* @__PURE__ */ e.jsx(H, { in: I, children: /* @__PURE__ */ e.jsx(d, { sx: { mt: 2 }, children: n.map((l, P) => /* @__PURE__ */ e.jsx(
109
- x,
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: S + 1,
113
- maxLevel: V,
114
- onLike: r,
115
- onReply: o,
116
- showReplies: y,
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-${P}`
119
+ l.id || `reply-${q}`
120
120
  )) }) })
121
121
  ] });
122
122
  };
123
- x.displayName = "SCommentMessage";
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
- x as SCommentMessage,
130
- x as default
125
+ T as SCommentMessage,
126
+ T as default
131
127
  };
@@ -1,21 +1,21 @@
1
- import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as c } from "react";
3
- import { Paper as d, Box as u, IconButton as y, Typography as f } from "@mui/material";
4
- import { C as m, a as x } from "../ContentCopy-7nFBtjhs.js";
5
- const r = ({ text: e, typographyProps: o, onCopied: a, paperProps: s }) => {
6
- const [p, n] = c(!1), i = async () => {
7
- if (e)
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(e), n(!0), setTimeout(() => n(!1), 2e3), a == null || a();
10
- } catch (l) {
11
- console.error("Failed to copy text:", l);
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 e ? /* @__PURE__ */ t.jsx(d, { sx: { p: 2, border: "1px dashed", borderColor: "divider" }, ...s, children: /* @__PURE__ */ t.jsxs(u, { sx: { position: "relative" }, children: [
15
- /* @__PURE__ */ t.jsx(
16
- y,
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: i,
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: p ? "success.main" : "inherit"
27
+ color: t ? "success.main" : "inherit"
28
28
  // Green when copied
29
29
  },
30
- children: p ? /* @__PURE__ */ t.jsx(m, {}) : /* @__PURE__ */ t.jsx(x, {})
30
+ children: t ? /* @__PURE__ */ e.jsx(u, {}) : /* @__PURE__ */ e.jsx(h, {})
31
31
  }
32
32
  ),
33
- /* @__PURE__ */ t.jsx(
34
- f,
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
- ...o == null ? void 0 : o.sx
42
+ ...r?.sx
43
43
  // Allow custom styling override
44
44
  },
45
45
  color: "text.secondary",
46
- ...o,
47
- children: e
46
+ ...r,
47
+ children: o
48
48
  }
49
49
  )
50
50
  ] }) }) : null;
51
51
  };
52
- r.displayName = "SCopyableText";
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
- r as SCopyableText,
63
- r as default
54
+ f as SCopyableText,
55
+ f as default
64
56
  };
@@ -1,23 +1,23 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Typography as l, Fade as b, Slide as z } from "@mui/material";
3
- import { SFlexBox as m } from "../s-flex-box/s-flex-box.js";
4
- const r = ({
5
- digit: t = 0,
6
- title: p = "",
7
- size: c = "medium",
8
- color: o = "inherit",
9
- animation: u = "none",
10
- sx: f,
11
- digitSx: h,
12
- titleSx: v,
13
- showSeparator: g = !1,
14
- separator: x = ":",
15
- digitFormat: y = "default",
16
- hidden: S = !1
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 (S) return null;
19
- const V = (d) => y === "padded" ? d.toString().padStart(2, "0") : d.toString(), a = (() => {
20
- switch (c) {
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 = V(t), n = /* @__PURE__ */ e.jsx(
38
- l,
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: o === "inherit" ? "text.primary" : `${o}.main`,
44
+ color: l === "inherit" ? "text.primary" : `${l}.main`,
45
45
  width: "70px",
46
- ...a.digit,
47
- ...h
46
+ ...e.digit,
47
+ ...f
48
48
  },
49
49
  children: i
50
50
  }
51
- ), q = /* @__PURE__ */ e.jsx(
52
- l,
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
- ...a.title,
62
- ...v
61
+ ...e.title,
62
+ ...p
63
63
  },
64
- children: p
64
+ children: m
65
65
  }
66
- ), s = /* @__PURE__ */ e.jsxs(
67
- m,
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
- ...f
74
+ ...g
75
75
  },
76
76
  children: [
77
- u === "fade" ? /* @__PURE__ */ e.jsx(b, { in: !0, timeout: 300, children: /* @__PURE__ */ e.jsx("div", { children: n }) }, i) : u === "slide" ? /* @__PURE__ */ e.jsx(z, { in: !0, direction: "up", timeout: 300, children: /* @__PURE__ */ e.jsx("div", { children: n }) }, i) : n,
78
- q
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 g ? /* @__PURE__ */ e.jsxs(m, { alignItems: "center", children: [
82
+ return h ? /* @__PURE__ */ t.jsxs(c, { alignItems: "center", children: [
83
83
  s,
84
- /* @__PURE__ */ e.jsx(
85
- l,
84
+ /* @__PURE__ */ t.jsx(
85
+ r,
86
86
  {
87
87
  variant: "h3",
88
88
  sx: {
89
89
  color: "text.secondary",
90
- ...a.digit,
90
+ ...e.digit,
91
91
  lineHeight: 1,
92
92
  alignSelf: "flex-start",
93
93
  mt: 0.5
94
94
  },
95
- children: x
95
+ children: u
96
96
  }
97
97
  )
98
98
  ] }) : s;
99
99
  };
100
- r.displayName = "SCountBox";
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: '"error"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"info"' }, { value: '"success"' }, { 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: '"error"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"info"' }, { value: '"success"' }, { 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
- r as SCountBox,
111
- r as default
102
+ B as SCountBox,
103
+ B as default
112
104
  };