@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,31 +1,31 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
1
+ import { j as c } from "../jsx-runtime-tc70JA_2.js";
2
2
  import * as h from "react";
3
- import { c as i } from "../createSvgIcon-DxwgGAVe.js";
3
+ import { c as i } from "../createSvgIcon-BKymXuBG.js";
4
4
  import { MenuItem as u } from "@mui/material";
5
5
  import { usePopover as m } from "../hooks/use-popover.js";
6
- import { STextField as g } from "../s-text-field/s-text-field.js";
7
- import { I as f, S as x, F as b } from "../Select-DabtQlJT.js";
8
- import { S as d } from "../Stack-Cq2r2NmC.js";
9
- import { P as j } from "../Menu-CWq-a1Wz.js";
10
- const k = i(/* @__PURE__ */ e.jsx("path", {
6
+ import { I as p, S as d, F as f } from "../Select-DY7XGVsv.js";
7
+ import { S as v } from "../Stack-BScsuyQy.js";
8
+ import { P as x } from "../Menu-DZYzE2Mg.js";
9
+ import { STextField as j } from "../s-text-field/s-text-field.js";
10
+ const k = i(/* @__PURE__ */ c.jsx("path", {
11
11
  d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
12
- }), "Code"), H = i(/* @__PURE__ */ e.jsx("path", {
12
+ }), "Code"), H = i(/* @__PURE__ */ c.jsx("path", {
13
13
  d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"
14
- }), "FormatBold"), L = i(/* @__PURE__ */ e.jsx("path", {
14
+ }), "FormatBold"), b = i(/* @__PURE__ */ c.jsx("path", {
15
15
  d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
16
- }), "FormatItalic"), C = i(/* @__PURE__ */ e.jsx("path", {
16
+ }), "FormatItalic"), L = i(/* @__PURE__ */ c.jsx("path", {
17
17
  d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"
18
- }), "FormatListBulleted"), I = i(/* @__PURE__ */ e.jsx("path", {
18
+ }), "FormatListBulleted"), C = i(/* @__PURE__ */ c.jsx("path", {
19
19
  d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"
20
- }), "FormatListNumbered"), p = i(/* @__PURE__ */ e.jsx("path", {
20
+ }), "FormatListNumbered"), g = i(/* @__PURE__ */ c.jsx("path", {
21
21
  d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"
22
- }), "Link"), z = i(/* @__PURE__ */ e.jsx("path", {
22
+ }), "Link"), I = i(/* @__PURE__ */ c.jsx("path", {
23
23
  d: "M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"
24
- }), "StrikethroughS"), v = ({ editor: n }) => {
25
- const a = m(), [l, s] = h.useState("");
26
- return /* @__PURE__ */ e.jsxs(h.Fragment, { children: [
27
- /* @__PURE__ */ e.jsx(
28
- d,
24
+ }), "StrikethroughS"), N = ({ editor: n }) => {
25
+ const s = m(), [l, t] = h.useState("");
26
+ return /* @__PURE__ */ c.jsxs(h.Fragment, { children: [
27
+ /* @__PURE__ */ c.jsx(
28
+ v,
29
29
  {
30
30
  className: "tiptap-toolbar",
31
31
  spacing: 1,
@@ -35,12 +35,12 @@ const k = i(/* @__PURE__ */ e.jsx("path", {
35
35
  p: "8px",
36
36
  minHeight: "57px"
37
37
  },
38
- children: n ? /* @__PURE__ */ e.jsxs(d, { direction: "row", spacing: 0.5, sx: { alignItems: "center", flexWrap: "wrap" }, children: [
39
- /* @__PURE__ */ e.jsxs(
40
- x,
38
+ children: n ? /* @__PURE__ */ c.jsxs(v, { direction: "row", spacing: 0.5, sx: { alignItems: "center", flexWrap: "wrap" }, children: [
39
+ /* @__PURE__ */ c.jsxs(
40
+ d,
41
41
  {
42
- onChange: (t) => {
43
- const o = t.target.value;
42
+ onChange: (e) => {
43
+ const o = e.target.value;
44
44
  if (o) {
45
45
  if (o === "p") {
46
46
  n.chain().focus().setParagraph().run();
@@ -52,139 +52,139 @@ const k = i(/* @__PURE__ */ e.jsx("path", {
52
52
  }
53
53
  }
54
54
  },
55
- value: S(n),
55
+ value: z(n),
56
56
  children: [
57
- /* @__PURE__ */ e.jsx(u, { disabled: !n.can().chain().focus().setParagraph().run(), value: "p", children: "Paragraph" }),
58
- [1, 2, 3, 4, 5, 6].map((t) => /* @__PURE__ */ e.jsxs(
57
+ /* @__PURE__ */ c.jsx(u, { disabled: !n.can().chain().focus().setParagraph().run(), value: "p", children: "Paragraph" }),
58
+ [1, 2, 3, 4, 5, 6].map((e) => /* @__PURE__ */ c.jsxs(
59
59
  u,
60
60
  {
61
- disabled: !n.can().chain().focus().setHeading({ level: t }).run(),
62
- value: `h${t}`,
61
+ disabled: !n.can().chain().focus().setHeading({ level: e }).run(),
62
+ value: `h${e}`,
63
63
  children: [
64
64
  "Heading ",
65
- t
65
+ e
66
66
  ]
67
67
  },
68
- t
68
+ e
69
69
  ))
70
70
  ]
71
71
  }
72
72
  ),
73
- /* @__PURE__ */ e.jsx(
74
- c,
73
+ /* @__PURE__ */ c.jsx(
74
+ a,
75
75
  {
76
76
  active: n.isActive("bold"),
77
77
  disabled: !n.can().chain().focus().toggleBold().run(),
78
78
  onClick: () => {
79
79
  n.chain().focus().toggleBold().run();
80
80
  },
81
- children: /* @__PURE__ */ e.jsx(H, {})
81
+ children: /* @__PURE__ */ c.jsx(H, {})
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ e.jsx(
85
- c,
84
+ /* @__PURE__ */ c.jsx(
85
+ a,
86
86
  {
87
87
  active: n.isActive("italic"),
88
88
  disabled: !n.can().chain().focus().toggleItalic().run(),
89
89
  onClick: () => {
90
90
  n.chain().focus().toggleItalic().run();
91
91
  },
92
- children: /* @__PURE__ */ e.jsx(L, {})
92
+ children: /* @__PURE__ */ c.jsx(b, {})
93
93
  }
94
94
  ),
95
- /* @__PURE__ */ e.jsx(
96
- c,
95
+ /* @__PURE__ */ c.jsx(
96
+ a,
97
97
  {
98
98
  active: n.isActive("strike"),
99
99
  disabled: !n.can().chain().focus().toggleStrike().run(),
100
100
  onClick: () => {
101
101
  n.chain().focus().toggleStrike().run();
102
102
  },
103
- children: /* @__PURE__ */ e.jsx(z, {})
103
+ children: /* @__PURE__ */ c.jsx(I, {})
104
104
  }
105
105
  ),
106
- /* @__PURE__ */ e.jsx(
107
- c,
106
+ /* @__PURE__ */ c.jsx(
107
+ a,
108
108
  {
109
109
  active: n.isActive("codeBlock"),
110
110
  disabled: !n.can().chain().focus().toggleCodeBlock().run(),
111
111
  onClick: () => {
112
112
  n.chain().focus().toggleCodeBlock();
113
113
  },
114
- children: /* @__PURE__ */ e.jsx(k, {})
114
+ children: /* @__PURE__ */ c.jsx(k, {})
115
115
  }
116
116
  ),
117
- /* @__PURE__ */ e.jsx(
118
- c,
117
+ /* @__PURE__ */ c.jsx(
118
+ a,
119
119
  {
120
120
  active: n.isActive("bulletList"),
121
121
  disabled: !n.can().chain().focus().toggleBulletList().run(),
122
122
  onClick: () => {
123
123
  n.chain().focus().toggleBulletList().run();
124
124
  },
125
- children: /* @__PURE__ */ e.jsx(C, {})
125
+ children: /* @__PURE__ */ c.jsx(L, {})
126
126
  }
127
127
  ),
128
- /* @__PURE__ */ e.jsx(
129
- c,
128
+ /* @__PURE__ */ c.jsx(
129
+ a,
130
130
  {
131
131
  active: n.isActive("orderedList"),
132
132
  disabled: !n.can().chain().focus().toggleOrderedList().run(),
133
133
  onClick: () => {
134
134
  n.chain().focus().toggleOrderedList().run();
135
135
  },
136
- children: /* @__PURE__ */ e.jsx(I, {})
136
+ children: /* @__PURE__ */ c.jsx(C, {})
137
137
  }
138
138
  ),
139
- /* @__PURE__ */ e.jsx(
140
- c,
139
+ /* @__PURE__ */ c.jsx(
140
+ a,
141
141
  {
142
142
  onClick: () => {
143
- s(n.getAttributes("link").href ?? ""), a.handleOpen();
143
+ t(n.getAttributes("link").href ?? ""), s.handleOpen();
144
144
  },
145
- ref: a.anchorRef,
146
- children: /* @__PURE__ */ e.jsx(p, {})
145
+ ref: s.anchorRef,
146
+ children: /* @__PURE__ */ c.jsx(g, {})
147
147
  }
148
148
  ),
149
- /* @__PURE__ */ e.jsx(
150
- c,
149
+ /* @__PURE__ */ c.jsx(
150
+ a,
151
151
  {
152
152
  active: n.isActive("link"),
153
153
  disabled: !n.can().chain().focus().unsetLink().run(),
154
154
  onClick: () => {
155
155
  n.chain().focus().unsetLink().run();
156
156
  },
157
- children: /* @__PURE__ */ e.jsx(p, {})
157
+ children: /* @__PURE__ */ c.jsx(g, {})
158
158
  }
159
159
  )
160
160
  ] }) : null
161
161
  }
162
162
  ),
163
- /* @__PURE__ */ e.jsx(
164
- j,
163
+ /* @__PURE__ */ c.jsx(
164
+ x,
165
165
  {
166
- anchorEl: a.anchorRef.current,
166
+ anchorEl: s.anchorRef.current,
167
167
  anchorOrigin: { horizontal: "left", vertical: "bottom" },
168
168
  onClose: () => {
169
- a.handleClose(), s("");
169
+ s.handleClose(), t("");
170
170
  },
171
- open: a.open,
171
+ open: s.open,
172
172
  slotProps: { paper: { sx: { p: 2 } } },
173
- children: /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(
174
- g,
173
+ children: /* @__PURE__ */ c.jsx(f, { children: /* @__PURE__ */ c.jsx(
174
+ j,
175
175
  {
176
176
  name: "url",
177
177
  label: "URL",
178
- onChange: (t) => {
179
- s(t.target.value);
178
+ onChange: (e) => {
179
+ t(e.target.value);
180
180
  },
181
- onKeyUp: (t) => {
182
- if (t.key === "Enter") {
181
+ onKeyUp: (e) => {
182
+ if (e.key === "Enter") {
183
183
  if (l === "") {
184
- n == null || n.chain().focus().extendMarkRange("link").unsetLink().run();
184
+ n?.chain().focus().extendMarkRange("link").unsetLink().run();
185
185
  return;
186
186
  }
187
- n == null || n.chain().focus().setLink({ href: l }).run(), a.handleClose(), s("");
187
+ n?.chain().focus().setLink({ href: l }).run(), s.handleClose(), t("");
188
188
  }
189
189
  },
190
190
  value: l
@@ -194,27 +194,12 @@ const k = i(/* @__PURE__ */ e.jsx("path", {
194
194
  )
195
195
  ] });
196
196
  };
197
- function S(n) {
197
+ function z(n) {
198
198
  return n.isActive("paragraph") ? "p" : n.isActive("heading", { level: 1 }) ? "h1" : n.isActive("heading", { level: 2 }) ? "h2" : n.isActive("heading", { level: 3 }) ? "h3" : n.isActive("heading", { level: 4 }) ? "h4" : n.isActive("heading", { level: 5 }) ? "h5" : n.isActive("heading", { level: 6 }) ? "h6" : "p";
199
199
  }
200
- const c = h.forwardRef(function({ active: a, children: l, disabled: s, onClick: t }, o) {
201
- return /* @__PURE__ */ e.jsx(f, { color: a ? "primary" : "inherit", disabled: s, onClick: t, ref: o, children: l });
200
+ const a = h.forwardRef(function({ active: s, children: l, disabled: t, onClick: e }, o) {
201
+ return /* @__PURE__ */ c.jsx(p, { color: s ? "primary" : "inherit", disabled: t, onClick: e, ref: o, children: l });
202
202
  });
203
- try {
204
- v.displayName = "STextEditorToolbar", v.__docgenInfo = { description: `Rich text editor toolbar component with comprehensive formatting controls
205
-
206
- Provides a full-featured toolbar for text formatting including:
207
- - Text styles: paragraph, headings (H1-H6)
208
- - Format options: bold, italic, strikethrough
209
- - Lists: bulleted and numbered
210
- - Code blocks
211
- - Link management with popover interface
212
-
213
- The toolbar dynamically enables/disables controls based on editor capabilities
214
- and current selection context. Link editing is handled through a popover with
215
- URL input field.`, displayName: "STextEditorToolbar", props: { editor: { defaultValue: null, description: "The Tiptap editor instance - null when editor is not yet initialized", name: "editor", required: !0, type: { name: "Editor | null" } } } };
216
- } catch {
217
- }
218
203
  export {
219
- v as STextEditorToolbar
204
+ N as STextEditorToolbar
220
205
  };
@@ -1,42 +1,42 @@
1
- import { j as o } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as s from "react";
3
- import { Link as p } from "@tiptap/extension-link";
4
- import { Placeholder as c } from "@tiptap/extension-placeholder";
5
- import { useEditor as u, EditorContent as f } from "@tiptap/react";
6
- import { StarterKit as m } from "@tiptap/starter-kit";
7
- import { STextEditorToolbar as h } from "./s-text-editor-toolbar.js";
8
- import { B as x } from "../Box-Ha0cQ4KO.js";
9
- const r = ({
10
- content: e,
11
- editable: i = !0,
12
- hideToolbar: a,
13
- onUpdate: n = () => {
1
+ import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as p from "react";
3
+ import { Link as n } from "@tiptap/extension-link";
4
+ import { Placeholder as m } from "@tiptap/extension-placeholder";
5
+ import { useEditor as c, EditorContent as d } from "@tiptap/react";
6
+ import { StarterKit as f } from "@tiptap/starter-kit";
7
+ import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
8
+ import { B as u } from "../Box-CE3rycd-.js";
9
+ const h = ({
10
+ content: o,
11
+ editable: t = !0,
12
+ hideToolbar: i,
13
+ onUpdate: s = () => {
14
14
  },
15
- placeholder: l
15
+ placeholder: a
16
16
  }) => {
17
- const d = [
18
- m,
19
- c.configure({ emptyEditorClass: "is-editor-empty", placeholder: l }),
20
- p.configure({ openOnClick: !1, autolink: !0 })
21
- ], t = u({
22
- extensions: d,
23
- content: e,
24
- editable: i,
25
- onUpdate: n,
17
+ const l = [
18
+ f,
19
+ m.configure({ emptyEditorClass: "is-editor-empty", placeholder: a }),
20
+ n.configure({ openOnClick: !1, autolink: !0 })
21
+ ], r = c({
22
+ extensions: l,
23
+ content: o,
24
+ editable: t,
25
+ onUpdate: s,
26
26
  parseOptions: {
27
27
  preserveWhitespace: "full"
28
28
  }
29
29
  });
30
- return s.useEffect(() => {
31
- t == null || t.commands.setContent(e, !1, { preserveWhitespace: "full" });
32
- }, [e]), /* @__PURE__ */ o.jsxs(
33
- x,
30
+ return p.useEffect(() => {
31
+ r?.commands.setContent(o);
32
+ }, [o]), /* @__PURE__ */ e.jsxs(
33
+ u,
34
34
  {
35
35
  className: "tiptap-root",
36
36
  sx: {
37
37
  display: "flex",
38
38
  flexDirection: "column",
39
- ...i && {
39
+ ...t && {
40
40
  border: "1px solid",
41
41
  borderColor: "divider",
42
42
  borderRadius: 1
@@ -69,26 +69,14 @@ const r = ({
69
69
  }
70
70
  },
71
71
  children: [
72
- a ? /* @__PURE__ */ o.jsx("div", {}) : /* @__PURE__ */ o.jsx(h, { editor: t }),
73
- /* @__PURE__ */ o.jsx(f, { className: "tiptap-container", editor: t })
72
+ i ? /* @__PURE__ */ e.jsx("div", {}) : /* @__PURE__ */ e.jsx(x, { editor: r }),
73
+ /* @__PURE__ */ e.jsx(d, { className: "tiptap-container", editor: r })
74
74
  ]
75
75
  }
76
76
  );
77
77
  };
78
- r.displayName = "STextEditor";
79
- try {
80
- r.displayName = "STextEditor", r.__docgenInfo = { description: "A powerful rich text editor built on Tiptap with an integrated toolbar.", displayName: "STextEditor", props: { content: { defaultValue: null, description: "Initial content for the editor (HTML string or Tiptap JSON)", name: "content", required: !0, type: { name: "Content" } }, editable: { defaultValue: { value: "true" }, description: "Whether the editor content can be modified", name: "editable", required: !1, type: { name: "boolean" } }, hideToolbar: { defaultValue: null, description: "Hide the formatting toolbar (useful for read-only displays)", name: "hideToolbar", required: !1, type: { name: "boolean" } }, onUpdate: { defaultValue: { value: `() => {
81
- // noop
82
- }` }, description: "Callback fired when editor content changes", name: "onUpdate", required: !1, type: { name: "((props: { editor: Editor; transaction: Transaction; }) => void)" } }, placeholder: { defaultValue: null, description: "Placeholder text shown when editor is empty", name: "placeholder", required: !1, type: { name: "string" } } } };
83
- } catch {
84
- }
85
- try {
86
- stexteditor.displayName = "stexteditor", stexteditor.__docgenInfo = { description: "A powerful rich text editor built on Tiptap with an integrated toolbar.", displayName: "stexteditor", props: { content: { defaultValue: null, description: "Initial content for the editor (HTML string or Tiptap JSON)", name: "content", required: !0, type: { name: "Content" } }, editable: { defaultValue: { value: "true" }, description: "Whether the editor content can be modified", name: "editable", required: !1, type: { name: "boolean" } }, hideToolbar: { defaultValue: null, description: "Hide the formatting toolbar (useful for read-only displays)", name: "hideToolbar", required: !1, type: { name: "boolean" } }, onUpdate: { defaultValue: { value: `() => {
87
- // noop
88
- }` }, description: "Callback fired when editor content changes", name: "onUpdate", required: !1, type: { name: "((props: { editor: Editor; transaction: Transaction; }) => void)" } }, placeholder: { defaultValue: null, description: "Placeholder text shown when editor is empty", name: "placeholder", required: !1, type: { name: "string" } } } };
89
- } catch {
90
- }
78
+ h.displayName = "STextEditor";
91
79
  export {
92
- r as STextEditor,
93
- r as default
80
+ h as STextEditor,
81
+ h as default
94
82
  };
@@ -1,58 +1,49 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import { useState as h } from "react";
3
- import { TextField as _, InputAdornment as w, IconButton as b } from "@mui/material";
4
- import { SForm as u } from "../s-form/s-form.js";
5
- import { c } from "../createSvgIcon-DxwgGAVe.js";
6
- const j = c(/* @__PURE__ */ e.jsx("path", {
1
+ import { j as s } from "../jsx-runtime-tc70JA_2.js";
2
+ import { useState as u } from "react";
3
+ import { TextField as j, InputAdornment as h, IconButton as w } from "@mui/material";
4
+ import { SForm as y } from "../s-form/s-form.js";
5
+ import { c as r } from "../createSvgIcon-BKymXuBG.js";
6
+ const b = r(/* @__PURE__ */ s.jsx("path", {
7
7
  d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
8
- }), "Visibility"), S = c(/* @__PURE__ */ e.jsx("path", {
8
+ }), "Visibility"), g = r(/* @__PURE__ */ s.jsx("path", {
9
9
  d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
10
- }), "VisibilityOff"), s = ({
11
- label: t = "",
12
- required: p = !1,
13
- error: o,
14
- type: r = "text",
15
- htmlFor: l,
16
- hint: m,
17
- ...n
10
+ }), "VisibilityOff"), P = ({
11
+ label: d = "",
12
+ required: c = !1,
13
+ error: t,
14
+ type: o = "text",
15
+ htmlFor: e,
16
+ hint: a,
17
+ ...l
18
18
  }) => {
19
- var a;
20
- const [i, x] = h(!1), d = r === "password", f = () => {
21
- x(!i);
22
- }, g = d && i ? "text" : r, y = d ? /* @__PURE__ */ e.jsx(w, { position: "end", children: /* @__PURE__ */ e.jsx(
23
- b,
19
+ const [i, p] = u(!1), n = o === "password", m = () => {
20
+ p(!i);
21
+ }, x = n && i ? "text" : o, f = n ? /* @__PURE__ */ s.jsx(h, { position: "end", children: /* @__PURE__ */ s.jsx(
22
+ w,
24
23
  {
25
24
  "aria-label": "toggle password visibility",
26
- onClick: f,
25
+ onClick: m,
27
26
  edge: "end",
28
27
  size: "small",
29
- children: i ? /* @__PURE__ */ e.jsx(S, {}) : /* @__PURE__ */ e.jsx(j, {})
28
+ children: i ? /* @__PURE__ */ s.jsx(g, {}) : /* @__PURE__ */ s.jsx(b, {})
30
29
  }
31
30
  ) }) : void 0;
32
- return /* @__PURE__ */ e.jsx(u, { label: t, hint: m, error: o, required: p, htmlFor: l, children: /* @__PURE__ */ e.jsx(
33
- _,
31
+ return /* @__PURE__ */ s.jsx(y, { label: d, hint: a, error: t, required: c, htmlFor: e, children: /* @__PURE__ */ s.jsx(
32
+ j,
34
33
  {
35
34
  fullWidth: !0,
36
- type: g,
37
- id: l,
38
- error: !!o,
39
- ...n,
35
+ type: x,
36
+ id: e,
37
+ error: !!t,
38
+ ...l,
40
39
  slotProps: {
41
- input: { endAdornment: y, ...(a = n.slotProps) == null ? void 0 : a.input }
40
+ input: { endAdornment: f, ...l.slotProps?.input }
42
41
  }
43
42
  }
44
43
  ) });
45
44
  };
46
- s.displayName = "STextField";
47
- try {
48
- s.displayName = "STextField", s.__docgenInfo = { description: "An enhanced text field component with integrated form labeling, error handling, and password visibility toggle.", displayName: "STextField", props: {} };
49
- } catch {
50
- }
51
- try {
52
- stextfield.displayName = "stextfield", stextfield.__docgenInfo = { description: "An enhanced text field component with integrated form labeling, error handling, and password visibility toggle.", displayName: "stextfield", props: {} };
53
- } catch {
54
- }
45
+ P.displayName = "STextField";
55
46
  export {
56
- s as STextField,
57
- s as default
47
+ P as STextField,
48
+ P as default
58
49
  };
@@ -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,18 +1,18 @@
1
- import { j as s } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as d, useMemo as m } from "react";
3
- import { Typography as p } from "@mui/material";
4
- import { s as l } from "../styled-B0Z4EDy9.js";
1
+ import { j as i } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as s, useMemo as p } from "react";
3
+ import { Typography as d } from "@mui/material";
4
+ import { s as m } from "../styled-B0KflPi-.js";
5
5
  import { keyframes as c } from "@emotion/react";
6
- const u = c`
6
+ const l = c`
7
7
  0% {
8
8
  background-position: 100% center;
9
9
  }
10
10
  100% {
11
11
  background-position: 0% center;
12
12
  }
13
- `, h = l(p, {
14
- shouldForwardProp: (e) => e !== "duration" && e !== "dynamicSpread"
15
- })(({ theme: e, duration: t, dynamicSpread: r }) => ({
13
+ `, g = m(d, {
14
+ shouldForwardProp: (r) => r !== "duration" && r !== "dynamicSpread"
15
+ })(({ theme: r, duration: e, dynamicSpread: a }) => ({
16
16
  display: "inline-block",
17
17
  position: "relative",
18
18
  backgroundClip: "text",
@@ -20,27 +20,19 @@ const u = c`
20
20
  color: "transparent",
21
21
  backgroundSize: "250% 100%, auto",
22
22
  backgroundRepeat: "no-repeat, padding-box",
23
- animation: `${u} ${t}s linear infinite`,
24
- "--spread": `${r}px`,
25
- "--base-color": (e.vars || e).palette.text.disabled,
26
- "--base-gradient-color": (e.vars || e).palette.text.primary,
23
+ animation: `${l} ${e}s linear infinite`,
24
+ "--spread": `${a}px`,
25
+ "--base-color": (r.vars || r).palette.text.disabled,
26
+ "--base-gradient-color": (r.vars || r).palette.text.primary,
27
27
  backgroundImage: "linear-gradient(90deg, transparent calc(50% - var(--spread)), var(--base-gradient-color), transparent calc(50% + var(--spread))), linear-gradient(var(--base-color), var(--base-color))"
28
- })), a = d(
29
- ({ children: e, duration: t = 2, spread: r = 2, ...i }, n) => {
30
- const o = m(() => e.length * r, [e, r]);
31
- return /* @__PURE__ */ s.jsx(h, { ref: n, duration: t, dynamicSpread: o, ...i, children: e });
28
+ })), b = s(
29
+ ({ children: r, duration: e = 2, spread: a = 2, ...o }, t) => {
30
+ const n = p(() => r.length * a, [r, a]);
31
+ return /* @__PURE__ */ i.jsx(g, { ref: t, duration: e, dynamicSpread: n, ...o, children: r });
32
32
  }
33
33
  );
34
- a.displayName = "STextShimmer";
35
- try {
36
- a.displayName = "STextShimmer", a.__docgenInfo = { description: "A text component that creates an animated shimmer effect.", displayName: "STextShimmer", props: { children: { defaultValue: null, description: "The text content to display with the shimmer effect", name: "children", required: !0, type: { name: "string" } }, duration: { defaultValue: { value: "2" }, description: "Duration of the shimmer animation in seconds", name: "duration", required: !1, type: { name: "number" } }, spread: { defaultValue: { value: "2" }, description: "Multiplier for the shimmer spread width", name: "spread", required: !1, type: { name: "number" } } } };
37
- } catch {
38
- }
39
- try {
40
- stextshimmer.displayName = "stextshimmer", stextshimmer.__docgenInfo = { description: "A text component that creates an animated shimmer effect.", displayName: "stextshimmer", props: { children: { defaultValue: null, description: "The text content to display with the shimmer effect", name: "children", required: !0, type: { name: "string" } }, duration: { defaultValue: { value: "2" }, description: "Duration of the shimmer animation in seconds", name: "duration", required: !1, type: { name: "number" } }, spread: { defaultValue: { value: "2" }, description: "Multiplier for the shimmer spread width", name: "spread", required: !1, type: { name: "number" } } } };
41
- } catch {
42
- }
34
+ b.displayName = "STextShimmer";
43
35
  export {
44
- a as STextShimmer,
45
- a as default
36
+ b as STextShimmer,
37
+ b as default
46
38
  };