@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.
Files changed (203) 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.js +84 -92
  79. package/dist/s-chat-message/s-chat-message.js +111 -120
  80. package/dist/s-checkbox/s-checkbox.js +12 -20
  81. package/dist/s-chip/package.json +5 -5
  82. package/dist/s-chip/s-chip.js +7 -15
  83. package/dist/s-chips/s-chips.js +47 -56
  84. package/dist/s-code-block/package.json +5 -5
  85. package/dist/s-code-block/s-code-block.js +35 -43
  86. package/dist/s-comment-message/package.json +5 -5
  87. package/dist/s-comment-message/s-comment-message.js +90 -94
  88. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  89. package/dist/s-countdown/s-count-box.js +42 -50
  90. package/dist/s-countdown/s-count-down.js +79 -107
  91. package/dist/s-data-table/s-data-table.js +374 -384
  92. package/dist/s-date-picker/s-date-picker.js +164 -164
  93. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  94. package/dist/s-dialog/s-dialog.js +24 -32
  95. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  96. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  97. package/dist/s-empty/s-empty.js +6 -14
  98. package/dist/s-error/s-error.js +9 -17
  99. package/dist/s-error-layout/s-error-layout.js +38 -47
  100. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  101. package/dist/s-file-icon/s-file-icon.js +9 -13
  102. package/dist/s-flex-box/s-flex-box.js +6 -14
  103. package/dist/s-form/s-form.js +11 -19
  104. package/dist/s-gallery/index.js +3 -33
  105. package/dist/s-gallery/s-gallery.js +91 -114
  106. package/dist/s-glow-button/s-glow-button.js +22 -26
  107. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  108. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  109. package/dist/s-icon-button/s-icon-button.js +6 -14
  110. package/dist/s-image-comparison/package.json +5 -5
  111. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  112. package/dist/s-image-modal/package.json +5 -5
  113. package/dist/s-image-modal/s-image-modal.js +137 -150
  114. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  115. package/dist/s-label/s-label.js +12 -20
  116. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  117. package/dist/s-lazy-image/index.js +2 -10
  118. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  119. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  120. package/dist/s-moving-border/s-moving-border.js +52 -67
  121. package/dist/s-multi-select/s-multi-select.js +43 -51
  122. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  123. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  124. package/dist/s-pagination/s-pagination.js +13 -17
  125. package/dist/s-pixel-reveal/package.json +5 -5
  126. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  127. package/dist/s-radial-pulse-animate/package.json +5 -5
  128. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  129. package/dist/s-rating/package.json +5 -5
  130. package/dist/s-rating/s-rating.js +7 -15
  131. package/dist/s-review/package.json +5 -5
  132. package/dist/s-review/s-review.js +101 -106
  133. package/dist/s-scroll-reveal/package.json +5 -5
  134. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  135. package/dist/s-scroll-to-top/package.json +5 -5
  136. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  137. package/dist/s-scroll-velocity/package.json +5 -5
  138. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  139. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  140. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  141. package/dist/s-select/s-select.js +67 -75
  142. package/dist/s-select-list/s-select-list.js +28 -32
  143. package/dist/s-skeleton/s-skeleton.js +20 -28
  144. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  145. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  146. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  147. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  148. package/dist/s-stripe/s-stripe-number.js +8 -12
  149. package/dist/s-stripe/s-stripe.d.ts +2 -2
  150. package/dist/s-stripe/s-stripe.js +17 -26
  151. package/dist/s-stripe/stripe-input.js +25 -29
  152. package/dist/s-tabs/package.json +3 -3
  153. package/dist/s-tabs/s-tab-panel.js +17 -25
  154. package/dist/s-tabs/s-tab.js +5 -9
  155. package/dist/s-tabs/s-tabs.js +19 -27
  156. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  157. package/dist/s-text-editor/s-text-editor.js +33 -45
  158. package/dist/s-text-field/s-text-field.js +31 -40
  159. package/dist/s-text-shimmer/package.json +4 -4
  160. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  161. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  162. package/dist/s-theme-demo/package.json +5 -5
  163. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  164. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  165. package/dist/s-theme-switch/package.json +4 -4
  166. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  167. package/dist/s-tip/s-tip.js +14 -22
  168. package/dist/s-two-pane-layout/index.js +2 -10
  169. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  170. package/dist/s-typewriter-text/package.json +5 -5
  171. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  172. package/dist/s-zoom-image/index.js +2 -10
  173. package/dist/s-zoom-image/package.json +5 -5
  174. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  175. package/dist/styled-B0KflPi-.js +203 -0
  176. package/dist/theme/components/alert.d.ts +484 -264
  177. package/dist/theme/components/avatar.js +2 -2
  178. package/dist/theme/components/button.d.ts +726 -396
  179. package/dist/theme/components/chip.js +2 -2
  180. package/dist/theme/components/icon-button.d.ts +726 -396
  181. package/dist/theme/customizations/data-display.js +1 -1
  182. package/dist/theme/customizations/inputs.js +2 -2
  183. package/dist/theme/customizations/navigation.js +2 -2
  184. package/dist/theme/theme-primitives.d.ts +8 -246
  185. package/dist/theme/theme-primitives.js +76 -87
  186. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  187. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  188. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  189. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  190. package/dist/utils/dayjs.js +7 -7
  191. package/dist/utils/logger.js +29 -32
  192. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  193. package/package.json +240 -81
  194. package/README.md +0 -13
  195. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  196. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  197. package/dist/Paper-hkbPWyBT.js +0 -553
  198. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  199. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  200. package/dist/extendSxProp-BKWjdW12.js +0 -37
  201. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  202. package/dist/resolveProps-61uUKnlS.js +0 -52
  203. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,70 +1,62 @@
1
- import { j as a } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as m from "react";
3
- import { createTheme as d, ThemeProvider as u } from "@mui/material";
4
- import { components as p } from "../theme/components/components.js";
5
- import { dataDisplayCustomizations as c } from "../theme/customizations/data-display.js";
1
+ import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as s from "react";
3
+ import { createTheme as p, ThemeProvider as c } from "@mui/material";
4
+ import { components as f } from "../theme/components/components.js";
5
+ import { dataDisplayCustomizations as u } from "../theme/customizations/data-display.js";
6
6
  import { feedbackCustomizations as h } from "../theme/customizations/feedback.js";
7
- import { inputsCustomizations as f } from "../theme/customizations/inputs.js";
8
- import { navigationCustomizations as y } from "../theme/customizations/navigation.js";
9
- import { surfacesCustomizations as v } from "../theme/customizations/surfaces.js";
10
- import { shape as C, shadows as g, typography as _, colorSchemes as T } from "../theme/theme-primitives.js";
11
- const o = ({
12
- children: e,
13
- disableCustomTheme: t,
14
- themeComponents: r,
15
- defaultMode: s = "system",
7
+ import { inputsCustomizations as d } from "../theme/customizations/inputs.js";
8
+ import { navigationCustomizations as l } from "../theme/customizations/navigation.js";
9
+ import { surfacesCustomizations as x } from "../theme/customizations/surfaces.js";
10
+ import { shape as y, shadows as z, typography as S, colorSchemes as g } from "../theme/theme-primitives.js";
11
+ const j = ({
12
+ children: r,
13
+ disableCustomTheme: o,
14
+ themeComponents: t,
15
+ defaultMode: m = "system",
16
16
  // System preference by default
17
- theme: n,
18
- ...i
17
+ theme: i,
18
+ ...a
19
19
  }) => {
20
- const l = m.useMemo(() => t ? {} : d({
20
+ const n = s.useMemo(() => o ? {} : p({
21
21
  // CSS variables configuration for dynamic theming
22
22
  cssVariables: {
23
23
  colorSchemeSelector: "data-mui-color-scheme",
24
24
  cssVarPrefix: "s"
25
25
  // All CSS vars prefixed with '--s-'
26
26
  },
27
- colorSchemes: T,
27
+ colorSchemes: g,
28
28
  // Light/dark color schemes
29
- typography: _,
29
+ typography: S,
30
30
  // Custom typography scales
31
- shadows: g,
31
+ shadows: z,
32
32
  // Custom shadow definitions
33
- shape: C,
33
+ shape: y,
34
34
  // Border radius and shape settings
35
35
  components: {
36
36
  // Merge all component customizations
37
- ...f,
38
- ...c,
37
+ ...d,
38
+ ...u,
39
39
  ...h,
40
- ...y,
41
- ...v,
42
- ...p,
43
- ...r
40
+ ...l,
41
+ ...x,
42
+ ...f,
43
+ ...t
44
44
  // Allow external overrides
45
45
  }
46
- }), [t, r]);
47
- return t ? /* @__PURE__ */ a.jsx(m.Fragment, { children: e }) : /* @__PURE__ */ a.jsx(
48
- u,
46
+ }), [o, t]);
47
+ return o ? /* @__PURE__ */ e.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(
48
+ c,
49
49
  {
50
50
  disableTransitionOnChange: !0,
51
- ...i,
52
- theme: { ...l, ...n },
53
- defaultMode: s,
54
- children: e
51
+ ...a,
52
+ theme: { ...n, ...i },
53
+ defaultMode: m,
54
+ children: r
55
55
  }
56
56
  );
57
57
  };
58
- o.displayName = "SThemeProvider";
59
- try {
60
- o.displayName = "SThemeProvider", o.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "SThemeProvider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"light"' }, { value: '"dark"' }, { value: '"system"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
61
- } catch {
62
- }
63
- try {
64
- sthemeprovider.displayName = "sthemeprovider", sthemeprovider.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "sthemeprovider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"light"' }, { value: '"dark"' }, { value: '"system"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
65
- } catch {
66
- }
58
+ j.displayName = "SThemeProvider";
67
59
  export {
68
- o as SThemeProvider,
69
- o as default
60
+ j as SThemeProvider,
61
+ j as default
70
62
  };
@@ -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
  }
@@ -1,31 +1,31 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useRef as g, useCallback as l } from "react";
3
- import { IconButton as w } from "@mui/material";
4
- import { flushSync as y } from "react-dom";
5
- import { c as m } from "../createSvgIcon-DxwgGAVe.js";
6
- const M = m(/* @__PURE__ */ e.jsx("path", {
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useRef as M, useCallback as m } from "react";
3
+ import { IconButton as f } from "@mui/material";
4
+ import { flushSync as w } from "react-dom";
5
+ import { c as d } from "../createSvgIcon-BKymXuBG.js";
6
+ const k = d(/* @__PURE__ */ t.jsx("path", {
7
7
  d: "M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"
8
- }), "DarkMode"), v = m(/* @__PURE__ */ e.jsx("path", {
8
+ }), "DarkMode"), j = d(/* @__PURE__ */ t.jsx("path", {
9
9
  d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"
10
- }), "LightMode"), V = ({ mode: t, setMode: s, sx: d }) => {
11
- const n = g(null), u = t === "dark", a = l(() => {
10
+ }), "LightMode"), z = ({ mode: c, setMode: i, sx: h }) => {
11
+ const n = M(null), l = c === "dark", e = m(() => {
12
12
  setTimeout(() => {
13
- s == null || s(t === "dark" ? "light" : "dark");
13
+ i?.(c === "dark" ? "light" : "dark");
14
14
  }, 0);
15
- }, [t, s]), h = l(async () => {
15
+ }, [c, i]), u = m(async () => {
16
16
  if (!n.current || !document.startViewTransition) {
17
- a();
17
+ e();
18
18
  return;
19
19
  }
20
20
  await document.startViewTransition(() => {
21
- y(() => {
22
- a();
21
+ w(() => {
22
+ e();
23
23
  });
24
24
  }).ready;
25
- const { top: c, left: o, width: p, height: x } = n.current.getBoundingClientRect(), i = o + p / 2, r = c + x / 2, f = Math.hypot(Math.max(o, window.innerWidth - o), Math.max(c, window.innerHeight - c));
25
+ const { top: o, left: s, width: p, height: x } = n.current.getBoundingClientRect(), r = s + p / 2, a = o + x / 2, g = Math.hypot(Math.max(s, window.innerWidth - s), Math.max(o, window.innerHeight - o));
26
26
  document.documentElement.animate(
27
27
  {
28
- clipPath: [`circle(0px at ${i}px ${r}px)`, `circle(${f}px at ${i}px ${r}px)`]
28
+ clipPath: [`circle(0px at ${r}px ${a}px)`, `circle(${g}px at ${r}px ${a}px)`]
29
29
  },
30
30
  {
31
31
  duration: 700,
@@ -33,13 +33,9 @@ const M = m(/* @__PURE__ */ e.jsx("path", {
33
33
  pseudoElement: "::view-transition-new(root)"
34
34
  }
35
35
  );
36
- }, [a]);
37
- return /* @__PURE__ */ e.jsx(w, { ref: n, onClick: h, sx: d, children: u ? /* @__PURE__ */ e.jsx(v, {}) : /* @__PURE__ */ e.jsx(M, {}) });
36
+ }, [e]);
37
+ return /* @__PURE__ */ t.jsx(f, { ref: n, onClick: u, sx: h, children: l ? /* @__PURE__ */ t.jsx(j, {}) : /* @__PURE__ */ t.jsx(k, {}) });
38
38
  };
39
- try {
40
- sthemeswitch.displayName = "sthemeswitch", sthemeswitch.__docgenInfo = { description: "", displayName: "sthemeswitch", props: { mode: { defaultValue: null, description: "", name: "mode", required: !1, type: { name: "enum", value: [{ value: '"light"' }, { value: '"dark"' }, { value: '"system"' }] } }, setMode: { defaultValue: null, description: "", name: "setMode", required: !1, type: { name: "((mode: SThemeMode) => void)" } }, sx: { defaultValue: null, description: "", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
41
- } catch {
42
- }
43
39
  export {
44
- V as default
40
+ z as default
45
41
  };
@@ -1,11 +1,11 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { c as a } from "../createSvgIcon-DxwgGAVe.js";
3
- import { S as r } from "../Stack-Cq2r2NmC.js";
4
- import { T as s } from "../Typography-C8jwvSWe.js";
5
- const o = a(/* @__PURE__ */ e.jsx("path", {
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { c as i } from "../createSvgIcon-BKymXuBG.js";
3
+ import { S as s } from "../Stack-BScsuyQy.js";
4
+ import { T as o } from "../Typography-9Kg27dDw.js";
5
+ const c = i(/* @__PURE__ */ t.jsx("path", {
6
6
  d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2 11.7V16h-4v-2.3C8.48 12.63 7 11.53 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.49-1.51 3.65-3 4.7"
7
- }), "LightbulbOutline"), i = ({ message: t }) => /* @__PURE__ */ e.jsxs(
8
- r,
7
+ }), "LightbulbOutline"), e = ({ message: r }) => /* @__PURE__ */ t.jsxs(
8
+ s,
9
9
  {
10
10
  direction: "row",
11
11
  spacing: 1,
@@ -18,25 +18,17 @@ const o = a(/* @__PURE__ */ e.jsx("path", {
18
18
  color: "text.secondary"
19
19
  },
20
20
  children: [
21
- /* @__PURE__ */ e.jsx(o, { sx: { fontSize: 16 } }),
22
- /* @__PURE__ */ e.jsxs(s, { variant: "body2", children: [
23
- /* @__PURE__ */ e.jsx(s, { component: "span", sx: { fontWeight: "bold" }, variant: "inherit", children: "Tip." }),
21
+ /* @__PURE__ */ t.jsx(c, { sx: { fontSize: 16 } }),
22
+ /* @__PURE__ */ t.jsxs(o, { variant: "body2", children: [
23
+ /* @__PURE__ */ t.jsx(o, { component: "span", sx: { fontWeight: "bold" }, variant: "inherit", children: "Tip." }),
24
24
  " ",
25
- t
25
+ r
26
26
  ] })
27
27
  ]
28
28
  }
29
29
  );
30
- i.displayName = "STip";
31
- try {
32
- i.displayName = "STip", i.__docgenInfo = { description: "A simple tip component that displays helpful information with a lightbulb icon.", displayName: "STip", props: { message: { defaultValue: null, description: "The tip message to display", name: "message", required: !0, type: { name: "string" } } } };
33
- } catch {
34
- }
35
- try {
36
- stip.displayName = "stip", stip.__docgenInfo = { description: "A simple tip component that displays helpful information with a lightbulb icon.", displayName: "stip", props: { message: { defaultValue: null, description: "The tip message to display", name: "message", required: !0, type: { name: "string" } } } };
37
- } catch {
38
- }
30
+ e.displayName = "STip";
39
31
  export {
40
- i as STip,
41
- i as default
32
+ e as STip,
33
+ e as default
42
34
  };
@@ -1,12 +1,4 @@
1
- import { STwoPaneLayout as n } from "./s-two-pane-layout.js";
2
- try {
3
- stwopanelayout.displayName = "stwopanelayout", stwopanelayout.__docgenInfo = { description: "A flexible two-pane layout component with customizable sidebar and content areas.", displayName: "stwopanelayout", props: { sidebar: { defaultValue: null, description: "Content to display in the sidebar pane", name: "sidebar", required: !0, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Content to display in the main content pane", name: "content", required: !0, type: { name: "ReactNode" } }, sidebarWidth: { defaultValue: { value: "280" }, description: "Width of the sidebar in pixels. Default: 280", name: "sidebarWidth", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "calc(100vh - 65px)" }, description: "Container height. Can be a CSS value or 'auto'. Default: 'calc(100vh - 65px)'", name: "height", required: !1, type: { name: "string | number" } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarSx: { defaultValue: null, description: "Custom styles for the sidebar container", name: "sidebarSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content container", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarHeaderSx: { defaultValue: null, description: "Custom styles for the sidebar header", name: "sidebarHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, contentHeaderSx: { defaultValue: null, description: "Custom styles for the content header", name: "contentHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarScrollSx: { defaultValue: null, description: "Custom styles for the sidebar scrollable area", name: "sidebarScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, contentScrollSx: { defaultValue: null, description: "Custom styles for the content scrollable area", name: "contentScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, disableBorder: { defaultValue: { value: "false" }, description: "Hide border between sidebar and content. Default: false", name: "disableBorder", required: !1, type: { name: "boolean" } }, sidebarHeader: { defaultValue: null, description: "Optional header content for the sidebar", name: "sidebarHeader", required: !1, type: { name: "ReactNode" } }, contentHeader: { defaultValue: null, description: "Optional header content for the main content area", name: "contentHeader", required: !1, type: { name: "ReactNode" } }, enableSidebarScroll: { defaultValue: { value: "true" }, description: "Enable scrollbar for sidebar. Default: true", name: "enableSidebarScroll", required: !1, type: { name: "boolean" } }, enableContentScroll: { defaultValue: { value: "false" }, description: "Enable scrollbar for content. Default: false", name: "enableContentScroll", required: !1, type: { name: "boolean" } }, sidebarPosition: { defaultValue: { value: "left" }, description: "Sidebar position. Default: 'left'", name: "sidebarPosition", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }] } }, sidebarPadding: { defaultValue: { value: "1" }, description: "Padding for sidebar content. Default: 1", name: "sidebarPadding", required: !1, type: { name: "string | number" } }, contentPadding: { defaultValue: { value: "1" }, description: "Padding for main content. Default: 0", name: "contentPadding", required: !1, type: { name: "string | number" } }, sidebarHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for sidebar header. Default: 2", name: "sidebarHeaderPadding", required: !1, type: { name: "string | number" } }, contentHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for content header. Default: 2", name: "contentHeaderPadding", required: !1, type: { name: "string | number" } } } };
4
- } catch {
5
- }
6
- try {
7
- STwoPaneLayoutProps.displayName = "STwoPaneLayoutProps", STwoPaneLayoutProps.__docgenInfo = { description: "Props for the STwoPaneLayout component", displayName: "STwoPaneLayoutProps", props: {} };
8
- } catch {
9
- }
1
+ import { STwoPaneLayout as e } from "./s-two-pane-layout.js";
10
2
  export {
11
- n as default
3
+ e as default
12
4
  };
@@ -1,81 +1,73 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Box as a } from "@mui/material";
3
- import { SFlexBox as D } from "../s-flex-box/s-flex-box.js";
4
- import { SOverlayScrollbar as h } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
5
- const r = ({
6
- sidebar: t,
1
+ import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
+ import { Box as r } from "@mui/material";
3
+ import { SOverlayScrollbar as p } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
4
+ import { SFlexBox as C } from "../s-flex-box/s-flex-box.js";
5
+ const R = ({
6
+ sidebar: o,
7
7
  content: l,
8
- sidebarWidth: x = 280,
9
- height: y = "calc(100vh - 65px)",
10
- containerSx: S,
11
- sidebarSx: g,
12
- contentSx: P,
13
- sidebarHeaderSx: q,
14
- contentHeaderSx: V,
15
- sidebarScrollSx: d,
16
- contentScrollSx: i,
17
- disableBorder: o = !1,
18
- sidebarHeader: s,
19
- contentHeader: u,
20
- enableSidebarScroll: v = !0,
21
- enableContentScroll: c = !1,
22
- sidebarPosition: n = "left",
23
- sidebarPadding: f = 1,
24
- contentPadding: m = 1,
25
- sidebarHeaderPadding: C = 2,
26
- contentHeaderPadding: H = 2
8
+ sidebarWidth: a = 280,
9
+ height: u = "calc(100vh - 65px)",
10
+ containerSx: v,
11
+ sidebarSx: w,
12
+ contentSx: g,
13
+ sidebarHeaderSx: y,
14
+ contentHeaderSx: B,
15
+ sidebarScrollSx: i,
16
+ contentScrollSx: s,
17
+ disableBorder: h = !1,
18
+ sidebarHeader: d,
19
+ contentHeader: t,
20
+ enableSidebarScroll: D = !0,
21
+ enableContentScroll: f = !1,
22
+ sidebarPosition: x = "left",
23
+ sidebarPadding: n = 1,
24
+ contentPadding: c = 1,
25
+ sidebarHeaderPadding: F = 2,
26
+ contentHeaderPadding: L = 2
27
27
  }) => {
28
- const p = /* @__PURE__ */ e.jsxs(
29
- a,
28
+ const j = /* @__PURE__ */ e.jsxs(
29
+ r,
30
30
  {
31
31
  sx: {
32
- width: x,
33
- borderRight: !o && n === "left" ? 1 : 0,
34
- borderLeft: !o && n === "right" ? 1 : 0,
32
+ width: a,
33
+ borderRight: !h && x === "left" ? 1 : 0,
34
+ borderLeft: !h && x === "right" ? 1 : 0,
35
35
  borderColor: "divider",
36
36
  display: "flex",
37
37
  flexDirection: "column",
38
- ...g
38
+ ...w
39
39
  },
40
40
  children: [
41
- s && /* @__PURE__ */ e.jsx(a, { sx: { p: C, borderBottom: 1, borderColor: "divider", ...q }, children: s }),
42
- /* @__PURE__ */ e.jsx(a, { sx: { flex: 1, minHeight: 0 }, children: v ? /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(a, { sx: { p: f, ...d }, children: t }) }) : /* @__PURE__ */ e.jsx(a, { sx: { p: f, height: "100%", overflow: "hidden", ...d }, children: t }) })
41
+ d && /* @__PURE__ */ e.jsx(r, { sx: { p: F, borderBottom: 1, borderColor: "divider", ...y }, children: d }),
42
+ /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, minHeight: 0 }, children: D ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: n, ...i }, children: o }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: n, height: "100%", overflow: "hidden", ...i }, children: o }) })
43
43
  ]
44
44
  }
45
- ), b = /* @__PURE__ */ e.jsxs(a, { sx: { flex: 1, display: "flex", flexDirection: "column", ...P }, height: "100%", children: [
46
- u && /* @__PURE__ */ e.jsx(a, { sx: { p: H, borderBottom: 1, borderColor: "divider", ...V }, children: u }),
47
- /* @__PURE__ */ e.jsx(a, { sx: { flex: 1, overflow: c ? "auto" : "hidden" }, children: c ? /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(a, { sx: { p: m, ...i }, children: l }) }) : /* @__PURE__ */ e.jsx(a, { sx: { p: m, height: "100%", ...i }, children: l }) })
45
+ ), m = /* @__PURE__ */ e.jsxs(r, { sx: { flex: 1, display: "flex", flexDirection: "column", ...g }, height: "100%", children: [
46
+ t && /* @__PURE__ */ e.jsx(r, { sx: { p: L, borderBottom: 1, borderColor: "divider", ...B }, children: t }),
47
+ /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, overflow: f ? "auto" : "hidden" }, children: f ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: c, ...s }, children: l }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: c, height: "100%", ...s }, children: l }) })
48
48
  ] });
49
49
  return /* @__PURE__ */ e.jsx(
50
- D,
50
+ C,
51
51
  {
52
52
  sx: {
53
- height: y,
53
+ height: u,
54
54
  flexDirection: "row",
55
55
  width: "100%",
56
56
  overflow: "hidden",
57
- ...S
57
+ ...v
58
58
  },
59
- children: n === "left" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
60
- p,
61
- b
59
+ children: x === "left" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
60
+ j,
61
+ m
62
62
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
63
- b,
64
- p
63
+ m,
64
+ j
65
65
  ] })
66
66
  }
67
67
  );
68
68
  };
69
- r.displayName = "STwoPaneLayout";
70
- try {
71
- r.displayName = "STwoPaneLayout", r.__docgenInfo = { description: "A flexible two-pane layout component with customizable sidebar and content areas.", displayName: "STwoPaneLayout", props: { sidebar: { defaultValue: null, description: "Content to display in the sidebar pane", name: "sidebar", required: !0, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Content to display in the main content pane", name: "content", required: !0, type: { name: "ReactNode" } }, sidebarWidth: { defaultValue: { value: "280" }, description: "Width of the sidebar in pixels. Default: 280", name: "sidebarWidth", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "calc(100vh - 65px)" }, description: "Container height. Can be a CSS value or 'auto'. Default: 'calc(100vh - 65px)'", name: "height", required: !1, type: { name: "string | number" } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarSx: { defaultValue: null, description: "Custom styles for the sidebar container", name: "sidebarSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content container", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarHeaderSx: { defaultValue: null, description: "Custom styles for the sidebar header", name: "sidebarHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, contentHeaderSx: { defaultValue: null, description: "Custom styles for the content header", name: "contentHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarScrollSx: { defaultValue: null, description: "Custom styles for the sidebar scrollable area", name: "sidebarScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, contentScrollSx: { defaultValue: null, description: "Custom styles for the content scrollable area", name: "contentScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, disableBorder: { defaultValue: { value: "false" }, description: "Hide border between sidebar and content. Default: false", name: "disableBorder", required: !1, type: { name: "boolean" } }, sidebarHeader: { defaultValue: null, description: "Optional header content for the sidebar", name: "sidebarHeader", required: !1, type: { name: "ReactNode" } }, contentHeader: { defaultValue: null, description: "Optional header content for the main content area", name: "contentHeader", required: !1, type: { name: "ReactNode" } }, enableSidebarScroll: { defaultValue: { value: "true" }, description: "Enable scrollbar for sidebar. Default: true", name: "enableSidebarScroll", required: !1, type: { name: "boolean" } }, enableContentScroll: { defaultValue: { value: "false" }, description: "Enable scrollbar for content. Default: false", name: "enableContentScroll", required: !1, type: { name: "boolean" } }, sidebarPosition: { defaultValue: { value: "left" }, description: "Sidebar position. Default: 'left'", name: "sidebarPosition", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }] } }, sidebarPadding: { defaultValue: { value: "1" }, description: "Padding for sidebar content. Default: 1", name: "sidebarPadding", required: !1, type: { name: "string | number" } }, contentPadding: { defaultValue: { value: "1" }, description: "Padding for main content. Default: 0", name: "contentPadding", required: !1, type: { name: "string | number" } }, sidebarHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for sidebar header. Default: 2", name: "sidebarHeaderPadding", required: !1, type: { name: "string | number" } }, contentHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for content header. Default: 2", name: "contentHeaderPadding", required: !1, type: { name: "string | number" } } } };
72
- } catch {
73
- }
74
- try {
75
- stwopanelayout.displayName = "stwopanelayout", stwopanelayout.__docgenInfo = { description: "A flexible two-pane layout component with customizable sidebar and content areas.", displayName: "stwopanelayout", props: { sidebar: { defaultValue: null, description: "Content to display in the sidebar pane", name: "sidebar", required: !0, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Content to display in the main content pane", name: "content", required: !0, type: { name: "ReactNode" } }, sidebarWidth: { defaultValue: { value: "280" }, description: "Width of the sidebar in pixels. Default: 280", name: "sidebarWidth", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "calc(100vh - 65px)" }, description: "Container height. Can be a CSS value or 'auto'. Default: 'calc(100vh - 65px)'", name: "height", required: !1, type: { name: "string | number" } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarSx: { defaultValue: null, description: "Custom styles for the sidebar container", name: "sidebarSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content container", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarHeaderSx: { defaultValue: null, description: "Custom styles for the sidebar header", name: "sidebarHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, contentHeaderSx: { defaultValue: null, description: "Custom styles for the content header", name: "contentHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarScrollSx: { defaultValue: null, description: "Custom styles for the sidebar scrollable area", name: "sidebarScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, contentScrollSx: { defaultValue: null, description: "Custom styles for the content scrollable area", name: "contentScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, disableBorder: { defaultValue: { value: "false" }, description: "Hide border between sidebar and content. Default: false", name: "disableBorder", required: !1, type: { name: "boolean" } }, sidebarHeader: { defaultValue: null, description: "Optional header content for the sidebar", name: "sidebarHeader", required: !1, type: { name: "ReactNode" } }, contentHeader: { defaultValue: null, description: "Optional header content for the main content area", name: "contentHeader", required: !1, type: { name: "ReactNode" } }, enableSidebarScroll: { defaultValue: { value: "true" }, description: "Enable scrollbar for sidebar. Default: true", name: "enableSidebarScroll", required: !1, type: { name: "boolean" } }, enableContentScroll: { defaultValue: { value: "false" }, description: "Enable scrollbar for content. Default: false", name: "enableContentScroll", required: !1, type: { name: "boolean" } }, sidebarPosition: { defaultValue: { value: "left" }, description: "Sidebar position. Default: 'left'", name: "sidebarPosition", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }] } }, sidebarPadding: { defaultValue: { value: "1" }, description: "Padding for sidebar content. Default: 1", name: "sidebarPadding", required: !1, type: { name: "string | number" } }, contentPadding: { defaultValue: { value: "1" }, description: "Padding for main content. Default: 0", name: "contentPadding", required: !1, type: { name: "string | number" } }, sidebarHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for sidebar header. Default: 2", name: "sidebarHeaderPadding", required: !1, type: { name: "string | number" } }, contentHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for content header. Default: 2", name: "contentHeaderPadding", required: !1, type: { name: "string | number" } } } };
76
- } catch {
77
- }
69
+ R.displayName = "STwoPaneLayout";
78
70
  export {
79
- r as STwoPaneLayout,
80
- r as default
71
+ R as STwoPaneLayout,
72
+ R as default
81
73
  };
@@ -1,6 +1,6 @@
1
- {
2
- "name": "@solostylist/ui-kit/s-typewriter-text",
3
- "main": "./index.ts",
4
- "module": "./index.ts",
5
- "types": "./index.ts"
1
+ {
2
+ "name": "@solostylist/ui-kit/s-typewriter-text",
3
+ "main": "./index.ts",
4
+ "module": "./index.ts",
5
+ "types": "./index.ts"
6
6
  }
@@ -1,54 +1,46 @@
1
- import { j as h } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as a, useEffect as _ } from "react";
3
- import { Typography as V, Box as v } from "@mui/material";
4
- const o = ({
5
- text: t,
6
- speed: p = 100,
7
- cursor: g = "|",
8
- cursorBlinking: x = !0,
9
- loop: u = !1,
10
- deleteSpeed: d = 50,
11
- delay: c = 1500,
12
- ...b
1
+ import { j as p } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useState as r, useEffect as j } from "react";
3
+ import { Typography as k, Box as D } from "@mui/material";
4
+ const b = ({
5
+ text: s,
6
+ speed: l = 100,
7
+ cursor: T = "|",
8
+ cursorBlinking: g = !0,
9
+ loop: c = !1,
10
+ deleteSpeed: x = 50,
11
+ delay: f = 1500,
12
+ ...h
13
13
  }) => {
14
- const [n, m] = a(""), [i, y] = a(0), [l, f] = a(!1), [w, T] = a(0), s = Array.isArray(t) ? t : [t], r = s[w] || "";
15
- return _(() => {
16
- if (!r) return;
17
- const q = setTimeout(
14
+ const [n, u] = r(""), [i, m] = r(0), [o, y] = r(!1), [d, A] = r(0), a = Array.isArray(s) ? s : [s], t = a[d] || "";
15
+ return j(() => {
16
+ if (!t) return;
17
+ const I = setTimeout(
18
18
  () => {
19
- l ? n.length > 0 ? m((e) => e.slice(0, -1)) : (f(!1), y(0), T((e) => (e + 1) % s.length)) : i < r.length ? (m((e) => e + r[i]), y((e) => e + 1)) : u && setTimeout(() => f(!0), c);
19
+ o ? n.length > 0 ? u((e) => e.slice(0, -1)) : (y(!1), m(0), A((e) => (e + 1) % a.length)) : i < t.length ? (u((e) => e + t[i]), m((e) => e + 1)) : c && setTimeout(() => y(!0), f);
20
20
  },
21
- l ? d : p
21
+ o ? x : l
22
22
  );
23
- return () => clearTimeout(q);
24
- }, [i, l, r, u, p, d, c, n, s.length]), /* @__PURE__ */ h.jsxs(V, { ...b, children: [
23
+ return () => clearTimeout(I);
24
+ }, [i, o, t, c, l, x, f, n, a.length]), /* @__PURE__ */ p.jsxs(k, { ...h, children: [
25
25
  n,
26
- /* @__PURE__ */ h.jsx(
27
- v,
26
+ /* @__PURE__ */ p.jsx(
27
+ D,
28
28
  {
29
29
  component: "span",
30
30
  sx: {
31
- animation: x ? "blink 1s infinite" : "none",
31
+ animation: g ? "blink 1s infinite" : "none",
32
32
  "@keyframes blink": {
33
33
  "0%, 50%": { opacity: 1 },
34
34
  "51%, 100%": { opacity: 0 }
35
35
  }
36
36
  },
37
- children: g
37
+ children: T
38
38
  }
39
39
  )
40
40
  ] });
41
41
  };
42
- o.displayName = "STypewriterText";
43
- try {
44
- o.displayName = "STypewriterText", o.__docgenInfo = { description: "An animated text component that creates a typewriter effect with customizable speed and looping.", displayName: "STypewriterText", props: { text: { defaultValue: null, description: "The text to display with typewriter effect. Can be a single string or array of strings for sequential display.", name: "text", required: !0, type: { name: "string | string[]" } }, speed: { defaultValue: { value: "100" }, description: "Speed of typing animation in milliseconds per character", name: "speed", required: !1, type: { name: "number" } }, cursor: { defaultValue: { value: "|" }, description: "Character to display as the typing cursor", name: "cursor", required: !1, type: { name: "string" } }, cursorBlinking: { defaultValue: { value: "true" }, description: "Whether the cursor should blink", name: "cursorBlinking", required: !1, type: { name: "boolean" } }, loop: { defaultValue: { value: "false" }, description: "Whether to loop the animation continuously", name: "loop", required: !1, type: { name: "boolean" } }, deleteSpeed: { defaultValue: { value: "50" }, description: "Speed of deletion animation in milliseconds per character (when looping)", name: "deleteSpeed", required: !1, type: { name: "number" } }, delay: { defaultValue: { value: "1500" }, description: "Delay in milliseconds before deleting text (when looping)", name: "delay", required: !1, type: { name: "number" } } } };
45
- } catch {
46
- }
47
- try {
48
- stypewritertext.displayName = "stypewritertext", stypewritertext.__docgenInfo = { description: "An animated text component that creates a typewriter effect with customizable speed and looping.", displayName: "stypewritertext", props: { text: { defaultValue: null, description: "The text to display with typewriter effect. Can be a single string or array of strings for sequential display.", name: "text", required: !0, type: { name: "string | string[]" } }, speed: { defaultValue: { value: "100" }, description: "Speed of typing animation in milliseconds per character", name: "speed", required: !1, type: { name: "number" } }, cursor: { defaultValue: { value: "|" }, description: "Character to display as the typing cursor", name: "cursor", required: !1, type: { name: "string" } }, cursorBlinking: { defaultValue: { value: "true" }, description: "Whether the cursor should blink", name: "cursorBlinking", required: !1, type: { name: "boolean" } }, loop: { defaultValue: { value: "false" }, description: "Whether to loop the animation continuously", name: "loop", required: !1, type: { name: "boolean" } }, deleteSpeed: { defaultValue: { value: "50" }, description: "Speed of deletion animation in milliseconds per character (when looping)", name: "deleteSpeed", required: !1, type: { name: "number" } }, delay: { defaultValue: { value: "1500" }, description: "Delay in milliseconds before deleting text (when looping)", name: "delay", required: !1, type: { name: "number" } } } };
49
- } catch {
50
- }
42
+ b.displayName = "STypewriterText";
51
43
  export {
52
- o as STypewriterText,
53
- o as default
44
+ b as STypewriterText,
45
+ b as default
54
46
  };
@@ -1,12 +1,4 @@
1
- import { SZoomImage as r } from "./s-zoom-image.js";
2
- try {
3
- szoomimage.displayName = "szoomimage", szoomimage.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "szoomimage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
4
- } catch {
5
- }
6
- try {
7
- SZoomImageProps.displayName = "SZoomImageProps", SZoomImageProps.__docgenInfo = { description: "Props interface for SZoomImage component", displayName: "SZoomImageProps", props: {} };
8
- } catch {
9
- }
1
+ import { SZoomImage as e } from "./s-zoom-image.js";
10
2
  export {
11
- r as default
3
+ e as default
12
4
  };
@@ -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
+ }