@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,37 +1,31 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as s, useId as m } from "react";
3
- import { Autocomplete as c, TextField as f } from "@mui/material";
4
- import { SForm as h } from "../s-form/s-form.js";
5
- const t = s(
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as a, useId as i } from "react";
3
+ import { Autocomplete as f, TextField as c } from "@mui/material";
4
+ import { SForm as n } from "../s-form/s-form.js";
5
+ const x = a(
6
6
  ({
7
- label: r = "",
8
- required: o = !1,
9
- error: l,
10
- htmlFor: i,
11
- ...n
7
+ label: o = "",
8
+ required: r = !1,
9
+ error: m,
10
+ htmlFor: l,
11
+ ...s
12
12
  }, d) => {
13
- const u = m(), a = i ?? u;
14
- return /* @__PURE__ */ e.jsx(h, { error: l, label: r, required: o, htmlFor: a, children: /* @__PURE__ */ e.jsx(
15
- c,
13
+ const u = i(), e = l ?? u;
14
+ return /* @__PURE__ */ t.jsx(n, { error: m, label: o, required: r, htmlFor: e, children: /* @__PURE__ */ t.jsx(
15
+ f,
16
16
  {
17
17
  disablePortal: !0,
18
18
  fullWidth: !0,
19
- renderInput: (p) => /* @__PURE__ */ e.jsx(f, { ...p }),
20
- id: a,
21
- ...n,
19
+ renderInput: (p) => /* @__PURE__ */ t.jsx(c, { ...p }),
20
+ id: e,
21
+ ...s,
22
22
  ref: d
23
23
  }
24
24
  ) });
25
25
  }
26
26
  );
27
- t.displayName = "SAutocomplete";
28
- try {
29
- t.displayName = "SAutocomplete", t.__docgenInfo = { description: `A standardized autocomplete/combobox component that wraps Material-UI Autocomplete
30
- with consistent form labeling, validation, and help text patterns. Maintains full
31
- Material-UI API compatibility while providing enhanced form integration.`, displayName: "SAutocomplete", props: { renderInput: { defaultValue: null, description: "Optional custom renderInput function for advanced input customization", name: "renderInput", required: !1, type: { name: "((params: AutocompleteRenderInputParams) => ReactNode)" } }, label: { defaultValue: null, description: "Field label displayed above the autocomplete", name: "label", required: !1, type: { name: "ReactNode" } }, required: { defaultValue: null, description: "Whether the field is required (shows asterisk in label)", name: "required", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display below the field", name: "error", required: !1, type: { name: "string" } }, htmlFor: { defaultValue: null, description: "HTML id attribute for the input element", name: "htmlFor", required: !1, type: { name: "string" } } } };
32
- } catch {
33
- }
27
+ x.displayName = "SAutocomplete";
34
28
  export {
35
- t as SAutocomplete,
36
- t as default
29
+ x as SAutocomplete,
30
+ x as default
37
31
  };
@@ -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,33 +1,22 @@
1
- import { j as i } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Box as n, Avatar as o, Typography as d } from "@mui/material";
3
- import "../s-lazy-image/index.js";
4
- import p from "../s-lazy-image/s-lazy-image.js";
5
- const r = ({ avatar: e, name: a, showName: l = !1, size: t = 40, avatarProps: s }) => /* @__PURE__ */ i.jsxs(n, { display: "flex", alignItems: "center", gap: 2, children: [
6
- /* @__PURE__ */ i.jsx(o, { sx: { width: t, height: t, fontSize: 16 }, ...s, children: e ? /* @__PURE__ */ i.jsx(
7
- p,
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { Box as s, Avatar as l, Typography as d } from "@mui/material";
3
+ import h from "../s-lazy-image/s-lazy-image.js";
4
+ const n = ({ avatar: i, name: a, showName: e = !1, size: r = 40, avatarProps: o }) => /* @__PURE__ */ t.jsxs(s, { display: "flex", alignItems: "center", gap: 2, children: [
5
+ /* @__PURE__ */ t.jsx(l, { sx: { width: r, height: r, fontSize: 16 }, ...o, children: i ? /* @__PURE__ */ t.jsx(
6
+ h,
8
7
  {
9
- src: e,
8
+ src: i,
10
9
  alt: a || "Avatar",
11
- width: t,
12
- height: t,
10
+ width: r,
11
+ height: r,
13
12
  variant: "circular",
14
13
  style: { borderRadius: "50%" }
15
14
  }
16
- ) : (a == null ? void 0 : a[0]) || "A" }),
17
- l && /* @__PURE__ */ i.jsx(d, { variant: "body1", fontSize: 20, children: a })
15
+ ) : a?.[0] || "A" }),
16
+ e && /* @__PURE__ */ t.jsx(d, { variant: "body1", fontSize: 20, children: a })
18
17
  ] });
19
- r.displayName = "SAvatar";
20
- try {
21
- r.displayName = "SAvatar", r.__docgenInfo = { description: `A flexible avatar component that displays user profile images with fallback to initials.
22
- Built on Material-UI Avatar with optional name display and customizable sizing.`, displayName: "SAvatar", props: { avatar: { defaultValue: null, description: "URL of the avatar image to display", name: "avatar", required: !1, type: { name: "string" } }, name: { defaultValue: null, description: "Name of the user, used for initials fallback and optional display", name: "name", required: !1, type: { name: "string" } }, showName: { defaultValue: { value: "false" }, description: "Whether to display the name alongside the avatar", name: "showName", required: !1, type: { name: "boolean" } }, size: { defaultValue: { value: "40" }, description: "Size of the avatar in pixels (width and height)", name: "size", required: !1, type: { name: "number" } }, avatarProps: { defaultValue: null, description: "Additional props to pass to the underlying Material-UI Avatar component", name: "avatarProps", required: !1, type: { name: "AvatarProps" } } } };
23
- } catch {
24
- }
25
- try {
26
- savatar.displayName = "savatar", savatar.__docgenInfo = { description: `A flexible avatar component that displays user profile images with fallback to initials.
27
- Built on Material-UI Avatar with optional name display and customizable sizing.`, displayName: "savatar", props: { avatar: { defaultValue: null, description: "URL of the avatar image to display", name: "avatar", required: !1, type: { name: "string" } }, name: { defaultValue: null, description: "Name of the user, used for initials fallback and optional display", name: "name", required: !1, type: { name: "string" } }, showName: { defaultValue: { value: "false" }, description: "Whether to display the name alongside the avatar", name: "showName", required: !1, type: { name: "boolean" } }, size: { defaultValue: { value: "40" }, description: "Size of the avatar in pixels (width and height)", name: "size", required: !1, type: { name: "number" } }, avatarProps: { defaultValue: null, description: "Additional props to pass to the underlying Material-UI Avatar component", name: "avatarProps", required: !1, type: { name: "AvatarProps" } } } };
28
- } catch {
29
- }
18
+ n.displayName = "SAvatar";
30
19
  export {
31
- r as SAvatar,
32
- r as default
20
+ n as SAvatar,
21
+ n as default
33
22
  };
@@ -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,85 +1,81 @@
1
- import { j as y } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as B, useRef as k, useEffect as R, useMemo as g } from "react";
3
- import { Typography as E } from "@mui/material";
4
- import { motion as F } from "framer-motion";
5
- const M = (r, o) => {
6
- const s = /* @__PURE__ */ new Set([...Object.keys(r), ...o.flatMap((e) => Object.keys(e))]), n = {};
7
- return s.forEach((e) => {
8
- n[e] = [r[e], ...o.map((l) => l[e])];
9
- }), n;
10
- }, c = ({
11
- text: r,
12
- delay: o = 100,
13
- animateBy: s = "words",
14
- direction: n = "top",
15
- threshold: e = 0.1,
1
+ import { j as y } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useState as K, useRef as R, useEffect as V, useMemo as b } from "react";
3
+ import { Typography as B } from "@mui/material";
4
+ import { motion as D } from "framer-motion";
5
+ const F = (s, a) => {
6
+ const i = /* @__PURE__ */ new Set([...Object.keys(s), ...a.flatMap((t) => Object.keys(t))]), o = {};
7
+ return i.forEach((t) => {
8
+ o[t] = [s[t], ...a.map((l) => l[t])];
9
+ }), o;
10
+ }, M = ({
11
+ text: s,
12
+ delay: a = 100,
13
+ animateBy: i = "words",
14
+ direction: o = "top",
15
+ threshold: t = 0.1,
16
16
  rootMargin: l = "0px",
17
- animationFrom: b,
17
+ animationFrom: d,
18
18
  animationTo: h,
19
- easing: v = (i) => i,
20
- onAnimationComplete: w,
21
- stepDuration: x = 0.35,
22
- variant: V = "body1",
23
- sx: q,
24
- ...T
19
+ easing: w = (n) => n,
20
+ onAnimationComplete: x,
21
+ stepDuration: j = 0.35,
22
+ variant: S = "body1",
23
+ sx: g,
24
+ ...v
25
25
  }) => {
26
- const i = s === "words" ? r.split(" ") : r.split(""), [C, _] = B(!1), u = k(null);
27
- R(() => {
28
- if (!u.current) return;
29
- const a = new IntersectionObserver(
30
- ([t]) => {
31
- t.isIntersecting && (_(!0), a.unobserve(u.current));
26
+ const n = i === "words" ? s.split(" ") : s.split(""), [T, k] = K(!1), c = R(null);
27
+ V(() => {
28
+ if (!c.current) return;
29
+ const r = new IntersectionObserver(
30
+ ([e]) => {
31
+ e.isIntersecting && (k(!0), r.unobserve(c.current));
32
32
  },
33
- { threshold: e, rootMargin: l }
33
+ { threshold: t, rootMargin: l }
34
34
  );
35
- return a.observe(u.current), () => a.disconnect();
36
- }, [e, l]);
37
- const S = g(
38
- () => n === "top" ? { filter: "blur(10px)", opacity: 0, y: -50 } : { filter: "blur(10px)", opacity: 0, y: 50 },
39
- [n]
40
- ), j = g(
35
+ return r.observe(c.current), () => r.disconnect();
36
+ }, [t, l]);
37
+ const C = b(
38
+ () => o === "top" ? { filter: "blur(10px)", opacity: 0, y: -50 } : { filter: "blur(10px)", opacity: 0, y: 50 },
39
+ [o]
40
+ ), E = b(
41
41
  () => [
42
42
  {
43
43
  filter: "blur(5px)",
44
44
  opacity: 0.5,
45
- y: n === "top" ? 5 : -5
45
+ y: o === "top" ? 5 : -5
46
46
  },
47
47
  { filter: "blur(0px)", opacity: 1, y: 0 }
48
48
  ],
49
- [n]
50
- ), p = b ?? S, d = h ?? j, m = d.length + 1, A = x * (m - 1), D = Array.from({ length: m }, (a, t) => m === 1 ? 0 : t / (m - 1));
51
- return /* @__PURE__ */ y.jsx(E, { ref: u, variant: V, sx: q, ...T, children: i.map((a, t) => {
52
- const I = M(p, d), f = {
53
- duration: A,
54
- times: D,
55
- delay: t * o / 1e3
49
+ [o]
50
+ ), u = d ?? C, f = h ?? E, p = f.length + 1, I = j * (p - 1), O = Array.from({ length: p }, (r, e) => p === 1 ? 0 : e / (p - 1));
51
+ return /* @__PURE__ */ y.jsx(B, { ref: c, variant: S, sx: g, ...v, children: n.map((r, e) => {
52
+ const A = F(u, f), m = {
53
+ duration: I,
54
+ times: O,
55
+ delay: e * a / 1e3
56
56
  };
57
- return f.ease = v, /* @__PURE__ */ y.jsxs(
58
- F.span,
57
+ return m.ease = w, /* @__PURE__ */ y.jsxs(
58
+ D.span,
59
59
  {
60
- initial: p,
61
- animate: C ? I : p,
62
- transition: f,
63
- onAnimationComplete: t === i.length - 1 ? w : void 0,
60
+ initial: u,
61
+ animate: T ? A : u,
62
+ transition: m,
63
+ onAnimationComplete: e === n.length - 1 ? x : void 0,
64
64
  style: {
65
65
  display: "inline-block",
66
66
  willChange: "transform, filter, opacity"
67
67
  },
68
68
  children: [
69
- a === " " ? " " : a,
70
- s === "words" && t < i.length - 1 && " "
69
+ r === " " ? " " : r,
70
+ i === "words" && e < n.length - 1 && " "
71
71
  ]
72
72
  },
73
- t
73
+ e
74
74
  );
75
75
  }) });
76
76
  };
77
- c.displayName = "SBlurText";
78
- try {
79
- c.displayName = "SBlurText", c.__docgenInfo = { description: "A Typography component that animates text with a blur effect when it comes into view.", displayName: "SBlurText", props: { text: { defaultValue: null, description: "The text content to animate", name: "text", required: !0, type: { name: "string" } }, delay: { defaultValue: { value: "100" }, description: "Delay between animating each segment in milliseconds", name: "delay", required: !1, type: { name: "number" } }, animateBy: { defaultValue: { value: "words" }, description: "Animation granularity - animate by words or individual letters", name: "animateBy", required: !1, type: { name: "enum", value: [{ value: '"words"' }, { value: '"letters"' }] } }, direction: { defaultValue: { value: "top" }, description: "Direction of the blur animation", name: "direction", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }] } }, threshold: { defaultValue: { value: "0.1" }, description: "Intersection observer threshold for triggering animation", name: "threshold", required: !1, type: { name: "number" } }, rootMargin: { defaultValue: { value: "0px" }, description: "Intersection observer root margin", name: "rootMargin", required: !1, type: { name: "string" } }, animationFrom: { defaultValue: null, description: "Custom starting animation state", name: "animationFrom", required: !1, type: { name: "Record<string, string | number>" } }, animationTo: { defaultValue: null, description: "Custom ending animation states (array for multi-step animations)", name: "animationTo", required: !1, type: { name: "Record<string, string | number>[]" } }, easing: { defaultValue: { value: "(t) => t" }, description: "Custom easing function for animation timing", name: "easing", required: !1, type: { name: "((t: number) => number)" } }, onAnimationComplete: { defaultValue: null, description: "Callback fired when animation completes", name: "onAnimationComplete", required: !1, type: { name: "(() => void)" } }, stepDuration: { defaultValue: { value: "0.35" }, description: "Duration of each animation step in seconds", name: "stepDuration", required: !1, type: { name: "number" } } } };
80
- } catch {
81
- }
77
+ M.displayName = "SBlurText";
82
78
  export {
83
- c as SBlurText,
84
- c as default
79
+ M as SBlurText,
80
+ M as default
85
81
  };
@@ -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,52 +1,44 @@
1
- import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as b } from "react";
3
- import { C as y } from "../ChevronRight-CnDWPrOm.js";
4
- import { Breadcrumbs as h, Typography as u, Link as t } from "@mui/material";
5
- const l = b(
1
+ import { j as o } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as f } from "react";
3
+ import { C as i } from "../ChevronRight-CC3l-wPC.js";
4
+ import { Breadcrumbs as $, Typography as t, Link as e } from "@mui/material";
5
+ const j = f(
6
6
  ({
7
- items: n,
8
- separator: c = /* @__PURE__ */ r.jsx(y, { fontSize: "small" }),
9
- LinkComponent: i,
10
- currentColor: s = "text.primary",
11
- linkColor: o = "primary.main",
12
- sx: m,
13
- ...d
14
- }, p) => /* @__PURE__ */ r.jsx(h, { ref: p, separator: c, sx: m, ...d, children: n.map((e, a) => {
15
- const f = a === n.length - 1;
16
- return e.isCurrent ?? f ? /* @__PURE__ */ r.jsx(u, { color: s, children: e.label }, `${e.label}-${a}`) : e.onClick ? /* @__PURE__ */ r.jsx(
17
- t,
7
+ items: a,
8
+ separator: u = /* @__PURE__ */ o.jsx(i, { fontSize: "small" }),
9
+ LinkComponent: s,
10
+ currentColor: c = "text.primary",
11
+ linkColor: n = "primary.main",
12
+ sx: b,
13
+ ...h
14
+ }, p) => /* @__PURE__ */ o.jsx($, { ref: p, separator: u, sx: b, ...h, children: a.map((r, l) => {
15
+ const d = l === a.length - 1;
16
+ return r.isCurrent ?? d ? /* @__PURE__ */ o.jsx(t, { color: c, children: r.label }, `${r.label}-${l}`) : r.onClick ? /* @__PURE__ */ o.jsx(
17
+ e,
18
18
  {
19
19
  component: "button",
20
- onClick: e.onClick,
21
- color: o,
20
+ onClick: r.onClick,
21
+ color: n,
22
22
  underline: "hover",
23
23
  sx: { cursor: "pointer", background: "none", border: "none", padding: 0, font: "inherit" },
24
- children: e.label
24
+ children: r.label
25
25
  },
26
- `${e.label}-${a}`
27
- ) : e.to ? i ? /* @__PURE__ */ r.jsx(
28
- t,
26
+ `${r.label}-${l}`
27
+ ) : r.to ? s ? /* @__PURE__ */ o.jsx(
28
+ e,
29
29
  {
30
- component: i,
31
- to: e.to,
32
- color: o,
30
+ component: s,
31
+ to: r.to,
32
+ color: n,
33
33
  underline: "hover",
34
- children: e.label
34
+ children: r.label
35
35
  },
36
- `${e.label}-${a}`
37
- ) : /* @__PURE__ */ r.jsx(t, { href: e.to, color: o, underline: "hover", children: e.label }, `${e.label}-${a}`) : /* @__PURE__ */ r.jsx(u, { color: s, children: e.label }, `${e.label}-${a}`);
36
+ `${r.label}-${l}`
37
+ ) : /* @__PURE__ */ o.jsx(e, { href: r.to, color: n, underline: "hover", children: r.label }, `${r.label}-${l}`) : /* @__PURE__ */ o.jsx(t, { color: c, children: r.label }, `${r.label}-${l}`);
38
38
  }) })
39
39
  );
40
- l.displayName = "SBreadcrumbs";
41
- try {
42
- l.displayName = "SBreadcrumbs", l.__docgenInfo = { description: "A breadcrumb navigation component for displaying hierarchical navigation paths.", displayName: "SBreadcrumbs", props: { sx: { defaultValue: null, description: "System prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, separator: { defaultValue: { value: '<ChevronRightIcon fontSize="small" />' }, description: "Custom separator element between breadcrumb items", name: "separator", required: !1, type: { name: "ReactNode" } }, LinkComponent: { defaultValue: null, description: "Custom link component (e.g., React Router Link) for navigation", name: "LinkComponent", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, items: { defaultValue: null, description: "Array of breadcrumb items to display", name: "items", required: !0, type: { name: "BreadcrumbItem[]" } }, currentColor: { defaultValue: { value: "text.primary" }, description: "Color of the current (active) breadcrumb item", name: "currentColor", required: !1, type: { name: "string" } }, linkColor: { defaultValue: { value: "primary.main" }, description: "Color of clickable breadcrumb links", name: "linkColor", required: !1, type: { name: "string" } } } };
43
- } catch {
44
- }
45
- try {
46
- sbreadcrumbs.displayName = "sbreadcrumbs", sbreadcrumbs.__docgenInfo = { description: "A breadcrumb navigation component for displaying hierarchical navigation paths.", displayName: "sbreadcrumbs", props: { sx: { defaultValue: null, description: "System prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, separator: { defaultValue: { value: '<ChevronRightIcon fontSize="small" />' }, description: "Custom separator element between breadcrumb items", name: "separator", required: !1, type: { name: "ReactNode" } }, LinkComponent: { defaultValue: null, description: "Custom link component (e.g., React Router Link) for navigation", name: "LinkComponent", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, items: { defaultValue: null, description: "Array of breadcrumb items to display", name: "items", required: !0, type: { name: "BreadcrumbItem[]" } }, currentColor: { defaultValue: { value: "text.primary" }, description: "Color of the current (active) breadcrumb item", name: "currentColor", required: !1, type: { name: "string" } }, linkColor: { defaultValue: { value: "primary.main" }, description: "Color of clickable breadcrumb links", name: "linkColor", required: !1, type: { name: "string" } } } };
47
- } catch {
48
- }
40
+ j.displayName = "SBreadcrumbs";
49
41
  export {
50
- l as SBreadcrumbs,
51
- l as default
42
+ j as SBreadcrumbs,
43
+ j as default
52
44
  };
@@ -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,17 +1,9 @@
1
- import { j as n } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as r } from "react";
3
- import { Button as i } from "@mui/material";
4
- const o = r((t, e) => /* @__PURE__ */ n.jsx(i, { ref: e, ...t }));
5
- o.displayName = "SButton";
6
- try {
7
- o.displayName = "SButton", o.__docgenInfo = { description: "A versatile button component built on Material-UI Button with consistent theming and accessibility features.", displayName: "SButton", props: {} };
8
- } catch {
9
- }
10
- try {
11
- sbutton.displayName = "sbutton", sbutton.__docgenInfo = { description: "A versatile button component built on Material-UI Button with consistent theming and accessibility features.", displayName: "sbutton", props: {} };
12
- } catch {
13
- }
1
+ import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as m } from "react";
3
+ import { Button as s } from "@mui/material";
4
+ const a = m((t, o) => /* @__PURE__ */ r.jsx(s, { ref: o, ...t }));
5
+ a.displayName = "SButton";
14
6
  export {
15
- o as SButton,
16
- o as default
7
+ a as SButton,
8
+ a as default
17
9
  };
@@ -1,45 +1,37 @@
1
- import { j as a } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Typography as c, Link as f } from "@mui/material";
3
- const t = ({
4
- onClick: e,
5
- beforeText: n = "",
6
- afterText: r = "",
7
- mainText: l = "",
8
- href: i = "#",
9
- component: o = "a",
10
- target: u,
11
- color: d = "text.secondary",
12
- linkColor: s = void 0,
13
- variant: p = "body2",
14
- lineHeight: m
15
- }) => /* @__PURE__ */ a.jsxs(c, { variant: p, lineHeight: m, color: d, children: [
16
- n,
1
+ import { j as o } from "../jsx-runtime-tc70JA_2.js";
2
+ import { Typography as m, Link as u } from "@mui/material";
3
+ const l = ({
4
+ onClick: r,
5
+ beforeText: t = "",
6
+ afterText: i = "",
7
+ mainText: n = "",
8
+ href: e = "#",
9
+ component: s = "a",
10
+ target: a,
11
+ color: p = "text.secondary",
12
+ linkColor: d = void 0,
13
+ variant: x = "body2",
14
+ lineHeight: c
15
+ }) => /* @__PURE__ */ o.jsxs(m, { variant: x, lineHeight: c, color: p, children: [
16
+ t,
17
17
  " ",
18
- /* @__PURE__ */ a.jsx(
19
- f,
18
+ /* @__PURE__ */ o.jsx(
19
+ u,
20
20
  {
21
- href: i,
22
- onClick: e,
21
+ href: e,
22
+ onClick: r,
23
23
  sx: { cursor: "pointer", fontSize: "inherit" },
24
- component: o,
25
- target: u,
26
- color: s,
27
- children: l
24
+ component: s,
25
+ target: a,
26
+ color: d,
27
+ children: n
28
28
  }
29
29
  ),
30
30
  " ",
31
- r
31
+ i
32
32
  ] });
33
- t.displayName = "SButtonLink";
34
- try {
35
- t.displayName = "SButtonLink", t.__docgenInfo = { description: "A flexible link component that combines text and a clickable link element.", displayName: "SButtonLink", props: { beforeText: { defaultValue: { value: "" }, description: "Text or element displayed before the main link", name: "beforeText", required: !1, type: { name: "ReactNode" } }, afterText: { defaultValue: { value: "" }, description: "Text or element displayed after the main link", name: "afterText", required: !1, type: { name: "ReactNode" } }, mainText: { defaultValue: { value: "" }, description: "The main clickable link text or element", name: "mainText", required: !1, type: { name: "ReactNode" } }, href: { defaultValue: { value: "#" }, description: "URL for the link (defaults to '#')", name: "href", required: !1, type: { name: "string" } }, component: { defaultValue: { value: "a" }, description: "Component to render the link as (e.g., RouterLink for client-side routing)", name: "component", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, target: { defaultValue: null, description: "Target attribute for the link (e.g., '_blank' for new tab)", name: "target", required: !1, type: { name: "string" } }, color: { defaultValue: { value: "text.secondary" }, description: "Color of the surrounding text", name: "color", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, linkColor: { defaultValue: { value: "undefined" }, description: "Color of the link itself (overrides default link color)", name: "linkColor", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, lineHeight: { defaultValue: null, description: "Line height for the typography", name: "lineHeight", required: !1, type: { name: "ResponsiveStyleValue<LineHeight<string | number> | readonly NonNullable<LineHeight<string | number>>[]> | ((theme: Theme) => ResponsiveStyleValue<...>)" } }, variant: { defaultValue: { value: "body2" }, description: "Typography variant for the container text", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, onClick: { defaultValue: null, description: "Click handler for the link", name: "onClick", required: !1, type: { name: "MouseEventHandler<HTMLAnchorElement>" } } } };
36
- } catch {
37
- }
38
- try {
39
- sbuttonlink.displayName = "sbuttonlink", sbuttonlink.__docgenInfo = { description: "A flexible link component that combines text and a clickable link element.", displayName: "sbuttonlink", props: { beforeText: { defaultValue: { value: "" }, description: "Text or element displayed before the main link", name: "beforeText", required: !1, type: { name: "ReactNode" } }, afterText: { defaultValue: { value: "" }, description: "Text or element displayed after the main link", name: "afterText", required: !1, type: { name: "ReactNode" } }, mainText: { defaultValue: { value: "" }, description: "The main clickable link text or element", name: "mainText", required: !1, type: { name: "ReactNode" } }, href: { defaultValue: { value: "#" }, description: "URL for the link (defaults to '#')", name: "href", required: !1, type: { name: "string" } }, component: { defaultValue: { value: "a" }, description: "Component to render the link as (e.g., RouterLink for client-side routing)", name: "component", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, target: { defaultValue: null, description: "Target attribute for the link (e.g., '_blank' for new tab)", name: "target", required: !1, type: { name: "string" } }, color: { defaultValue: { value: "text.secondary" }, description: "Color of the surrounding text", name: "color", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, linkColor: { defaultValue: { value: "undefined" }, description: "Color of the link itself (overrides default link color)", name: "linkColor", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, lineHeight: { defaultValue: null, description: "Line height for the typography", name: "lineHeight", required: !1, type: { name: "ResponsiveStyleValue<LineHeight<string | number> | readonly NonNullable<LineHeight<string | number>>[]> | ((theme: Theme) => ResponsiveStyleValue<...>)" } }, variant: { defaultValue: { value: "body2" }, description: "Typography variant for the container text", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, onClick: { defaultValue: null, description: "Click handler for the link", name: "onClick", required: !1, type: { name: "MouseEventHandler<HTMLAnchorElement>" } } } };
40
- } catch {
41
- }
33
+ l.displayName = "SButtonLink";
42
34
  export {
43
- t as SButtonLink,
44
- t as default
35
+ l as SButtonLink,
36
+ l as default
45
37
  };
@@ -1,5 +1,5 @@
1
- {
2
- "main": "./index.js",
3
- "types": "./index.d.ts",
4
- "sideEffects": false
1
+ {
2
+ "main": "./index.js",
3
+ "types": "./index.d.ts",
4
+ "sideEffects": false
5
5
  }