@solostylist/ui-kit 1.0.202 → 1.0.204

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 (445) hide show
  1. package/dist/ArrowUpward-KYbUu0UZ.js +5 -0
  2. package/dist/Box-a5uPlxYL.js +47 -0
  3. package/dist/ButtonBase-CyZX7c8K.js +802 -0
  4. package/dist/ChevronLeft-Djq7TyZX.js +5 -0
  5. package/dist/ChevronRight-BgWjUtu8.js +5 -0
  6. package/dist/Close-DD2G0QfM.js +5 -0
  7. package/dist/ContentCopy-D1OlBB-D.js +6 -0
  8. package/dist/DefaultPropsProvider-CFaP_bh_.js +157 -0
  9. package/dist/Download-DDt8mUQX.js +5 -0
  10. package/dist/ExpandMore-3GurpYw-.js +5 -0
  11. package/dist/Favorite-gVQqn0Cm.js +5 -0
  12. package/dist/Menu-BB3Khkc0.js +1662 -0
  13. package/dist/MenuItem-CjPW2J-w.js +213 -0
  14. package/dist/Paper-COr98fp-.js +329 -0
  15. package/dist/Select-B9880Uge.js +2545 -0
  16. package/dist/Stack-BJ4hQFAK.js +158 -0
  17. package/dist/Typography-B_GHPkH2.js +187 -0
  18. package/dist/assets/s-carousel.css +1 -1
  19. package/dist/assets/s-overlay-scrollbar.css +10 -1
  20. package/dist/assets/stripe-input.css +1 -1
  21. package/dist/avatar-boNnyODN.js +9 -0
  22. package/dist/buttonBaseClasses-DqKyadLa.js +13 -0
  23. package/dist/checkbox-CajxsIFH.js +57 -0
  24. package/dist/chunk-BQCxAhux.js +23 -0
  25. package/dist/createSimplePaletteValueFilter-1V26n1YK.js +14 -0
  26. package/dist/createSvgIcon-Bs2KOQvq.js +153 -0
  27. package/dist/createTheme-CMuiGmV-.js +2430 -0
  28. package/dist/defaultTheme-C7Su92B_.js +5 -0
  29. package/dist/entries/carousel.js +4 -4
  30. package/dist/entries/chat.js +4 -4
  31. package/dist/entries/code.js +4 -4
  32. package/dist/entries/core.js +57 -122
  33. package/dist/entries/dates.js +8 -12
  34. package/dist/entries/dropzone.js +4 -4
  35. package/dist/entries/editor.js +3 -4
  36. package/dist/entries/gallery.js +8 -13
  37. package/dist/entries/i18n.js +4 -7
  38. package/dist/entries/motion.js +15 -27
  39. package/dist/entries/scrollbar.js +3 -4
  40. package/dist/entries/stripe.js +7 -10
  41. package/dist/extendSxProp-DC0zdi8T.js +29 -0
  42. package/dist/generateUtilityClass-DdqZpZoW.js +34 -0
  43. package/dist/generateUtilityClasses-i3-S3IQr.js +10 -0
  44. package/dist/hooks/index.js +5 -11
  45. package/dist/hooks/use-count-down.js +85 -76
  46. package/dist/hooks/use-dialog.js +21 -18
  47. package/dist/hooks/use-is-passed-position.js +20 -20
  48. package/dist/hooks/use-popover.js +18 -18
  49. package/dist/hooks/use-scroll-animation.js +74 -56
  50. package/dist/iconButtonClasses-BggbSXxO.js +27 -0
  51. package/dist/identifier-_S1f0Pg2.js +190 -0
  52. package/dist/jsx-runtime-V-UOMaX1.js +180 -0
  53. package/dist/main.js +104 -196
  54. package/dist/mergeSlotProps-DKt8V_TK.js +48 -0
  55. package/dist/objectWithoutPropertiesLoose-Dn-p_OIo.js +23 -0
  56. package/dist/outlinedInputClasses-5cvWh4bu.js +43 -0
  57. package/dist/resolveProps-BfzHOpig.js +30 -0
  58. package/dist/s-accordion/index.js +4 -4
  59. package/dist/s-accordion/s-accordion.d.ts +0 -5
  60. package/dist/s-accordion/s-accordion.js +4 -949
  61. package/dist/s-accordion-Dt3fbZNh.js +712 -0
  62. package/dist/s-action-overlay/index.js +3 -4
  63. package/dist/s-action-overlay/s-action-overlay.d.ts +0 -4
  64. package/dist/s-action-overlay/s-action-overlay.js +108 -109
  65. package/dist/s-autocomplete/index.js +3 -4
  66. package/dist/s-autocomplete/s-autocomplete.d.ts +0 -5
  67. package/dist/s-autocomplete/s-autocomplete.js +25 -31
  68. package/dist/s-avatar/index.js +3 -4
  69. package/dist/s-avatar/s-avatar.d.ts +0 -4
  70. package/dist/s-avatar/s-avatar.js +32 -22
  71. package/dist/s-blur-text/index.js +3 -4
  72. package/dist/s-blur-text/s-blur-text.d.ts +0 -3
  73. package/dist/s-blur-text/s-blur-text.js +67 -81
  74. package/dist/s-breadcrumbs/index.js +3 -3
  75. package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +0 -3
  76. package/dist/s-breadcrumbs/s-breadcrumbs.js +49 -44
  77. package/dist/s-button/index.js +3 -4
  78. package/dist/s-button/s-button.d.ts +0 -3
  79. package/dist/s-button/s-button.js +11 -9
  80. package/dist/s-carousel/index.js +4 -4
  81. package/dist/s-carousel/s-carousel.d.ts +0 -3
  82. package/dist/s-carousel/s-carousel.js +4 -2478
  83. package/dist/s-carousel-B3VUHzx3.js +2294 -0
  84. package/dist/s-category-card/index.js +2 -3
  85. package/dist/s-category-card/s-category-card.d.ts +0 -3
  86. package/dist/s-category-card/s-category-card.js +70 -105
  87. package/dist/s-chat-input/index.js +4 -4
  88. package/dist/s-chat-input/s-chat-input.d.ts +0 -3
  89. package/dist/s-chat-input/s-chat-input.js +4 -319
  90. package/dist/s-chat-input-j_4JZfmI.js +283 -0
  91. package/dist/s-chat-message/index.js +4 -4
  92. package/dist/s-chat-message/s-chat-message.d.ts +0 -3
  93. package/dist/s-chat-message/s-chat-message.js +4 -283
  94. package/dist/s-chat-message-DQk5XWSJ.js +281 -0
  95. package/dist/s-checkbox/index.js +3 -4
  96. package/dist/s-checkbox/s-checkbox.d.ts +0 -3
  97. package/dist/s-checkbox/s-checkbox.js +27 -17
  98. package/dist/s-chip/index.js +3 -4
  99. package/dist/s-chip/s-chip.d.ts +0 -3
  100. package/dist/s-chip/s-chip.js +10 -8
  101. package/dist/s-chips/index.js +3 -4
  102. package/dist/s-chips/s-chips.d.ts +0 -1
  103. package/dist/s-chips/s-chips.js +91 -86
  104. package/dist/s-code-block/index.js +4 -4
  105. package/dist/s-code-block/s-code-block.d.ts +0 -3
  106. package/dist/s-code-block/s-code-block.js +4 -1052
  107. package/dist/s-code-block-BxdWmtRX.js +608 -0
  108. package/dist/s-comment-message/index.js +4 -4
  109. package/dist/s-comment-message/s-comment-message.d.ts +0 -3
  110. package/dist/s-comment-message/s-comment-message.js +4 -123
  111. package/dist/s-comment-message-D3XTOm1L.js +195 -0
  112. package/dist/s-copyable-text/index.js +4 -4
  113. package/dist/s-copyable-text/s-copyable-text.d.ts +0 -3
  114. package/dist/s-copyable-text/s-copyable-text.js +50 -54
  115. package/dist/s-countdown/index.js +4 -5
  116. package/dist/s-countdown/s-count-box.d.ts +0 -3
  117. package/dist/s-countdown/s-count-box.js +102 -106
  118. package/dist/s-countdown/s-count-down.d.ts +0 -3
  119. package/dist/s-countdown/s-count-down.js +101 -109
  120. package/dist/s-data-table/index.js +4 -4
  121. package/dist/s-data-table/s-data-table.d.ts +0 -3
  122. package/dist/s-data-table/s-data-table.js +4 -1291
  123. package/dist/s-data-table-B9B189jk.js +893 -0
  124. package/dist/s-date-picker/index.js +4 -4
  125. package/dist/s-date-picker/s-date-picker.d.ts +0 -3
  126. package/dist/s-date-picker/s-date-picker.js +4 -1521
  127. package/dist/s-date-picker-CH4q-Bfx.js +581 -0
  128. package/dist/s-datetime-picker/index.js +4 -4
  129. package/dist/s-datetime-picker/s-datetime-picker.d.ts +0 -3
  130. package/dist/s-datetime-picker/s-datetime-picker.js +4 -5180
  131. package/dist/s-datetime-picker-dviksz3-.js +3808 -0
  132. package/dist/s-dialog/index.js +3 -3
  133. package/dist/s-dialog/s-dialog.d.ts +0 -3
  134. package/dist/s-dialog/s-dialog.js +44 -36
  135. package/dist/s-dialog-confirm/index.js +4 -6
  136. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +0 -11
  137. package/dist/s-dialog-confirm/s-dialog-confirm.js +86 -75
  138. package/dist/s-dialog-message/index.js +4 -6
  139. package/dist/s-dialog-message/s-dialog-message.d.ts +0 -9
  140. package/dist/s-dialog-message/s-dialog-message.js +75 -66
  141. package/dist/s-empty/index.js +2 -3
  142. package/dist/s-empty/s-empty.d.ts +0 -1
  143. package/dist/s-empty/s-empty.js +12 -7
  144. package/dist/s-error/index.js +3 -4
  145. package/dist/s-error/s-error.d.ts +0 -1
  146. package/dist/s-error/s-error.js +31 -20
  147. package/dist/s-error-layout/index.js +3 -4
  148. package/dist/s-error-layout/s-error-layout.d.ts +0 -1
  149. package/dist/s-error-layout/s-error-layout.js +78 -56
  150. package/dist/s-file-dropzone/index.js +4 -4
  151. package/dist/s-file-dropzone/s-file-dropzone.d.ts +0 -1
  152. package/dist/s-file-dropzone/s-file-dropzone.js +4 -124
  153. package/dist/s-file-dropzone-DYiYlcY8.js +134 -0
  154. package/dist/s-file-icon/index.js +4 -4
  155. package/dist/s-file-icon/s-file-icon.d.ts +0 -1
  156. package/dist/s-file-icon/s-file-icon.js +327 -272
  157. package/dist/s-flex-box/index.js +4 -4
  158. package/dist/s-flex-box/s-flex-box.d.ts +0 -3
  159. package/dist/s-flex-box/s-flex-box.js +11 -7
  160. package/dist/s-form/index.js +3 -4
  161. package/dist/s-form/s-form.d.ts +0 -1
  162. package/dist/s-form/s-form.js +23 -15
  163. package/dist/s-gallery/index.js +4 -5
  164. package/dist/s-gallery/s-gallery.d.ts +0 -19
  165. package/dist/s-gallery/s-gallery.js +310 -346
  166. package/dist/s-glow-button/index.js +4 -4
  167. package/dist/s-glow-button/s-glow-button.js +30 -43
  168. package/dist/s-gradient-icon/index.js +3 -4
  169. package/dist/s-gradient-icon/s-gradient-icon.d.ts +0 -1
  170. package/dist/s-gradient-icon/s-gradient-icon.js +124 -79
  171. package/dist/s-i18n-provider/index.js +3 -4
  172. package/dist/s-i18n-provider/s-i18n-provider.d.ts +0 -1
  173. package/dist/s-i18n-provider/s-i18n-provider.js +23 -26
  174. package/dist/s-icon-button/index.js +3 -4
  175. package/dist/s-icon-button/s-icon-button.d.ts +0 -3
  176. package/dist/s-icon-button/s-icon-button.js +11 -8
  177. package/dist/s-image-comparison/index.js +4 -4
  178. package/dist/s-image-comparison/s-image-comparison.js +169 -206
  179. package/dist/s-image-modal/index.js +4 -5
  180. package/dist/s-image-modal/s-image-modal.d.ts +0 -4
  181. package/dist/s-image-modal/s-image-modal.js +396 -387
  182. package/dist/s-item-not-found/index.js +2 -3
  183. package/dist/s-item-not-found/s-item-not-found.d.ts +0 -3
  184. package/dist/s-item-not-found/s-item-not-found.js +240 -262
  185. package/dist/s-label/index.js +4 -4
  186. package/dist/s-label/s-label.d.ts +0 -3
  187. package/dist/s-label/s-label.js +4 -17
  188. package/dist/s-label-g_Qac9jO.js +30 -0
  189. package/dist/s-language-switcher/index.js +4 -6
  190. package/dist/s-language-switcher/s-language-switcher.d.ts +0 -3
  191. package/dist/s-language-switcher/s-language-switcher.js +4 -252
  192. package/dist/s-language-switcher-DhcrqHJt.js +198 -0
  193. package/dist/s-lazy-image/index.js +3 -4
  194. package/dist/s-lazy-image/s-lazy-image.js +41 -56
  195. package/dist/s-link/index.js +3 -4
  196. package/dist/s-link/s-link.d.ts +0 -3
  197. package/dist/s-link/s-link.js +30 -37
  198. package/dist/s-localization-provider/index.js +4 -4
  199. package/dist/s-localization-provider/s-localization-provider.d.ts +0 -1
  200. package/dist/s-localization-provider/s-localization-provider.js +4 -562
  201. package/dist/s-localization-provider-BpoHpRVl.js +537 -0
  202. package/dist/s-moving-border/index.js +2 -3
  203. package/dist/s-moving-border/s-moving-border.d.ts +0 -3
  204. package/dist/s-moving-border/s-moving-border.js +117 -131
  205. package/dist/s-multi-select/index.js +4 -4
  206. package/dist/s-multi-select/s-multi-select.d.ts +0 -1
  207. package/dist/s-multi-select/s-multi-select.js +4 -82
  208. package/dist/s-multi-select-CUsIS9dm.js +64 -0
  209. package/dist/s-no-ssr/index.js +3 -4
  210. package/dist/s-no-ssr/s-no-ssr.d.ts +0 -1
  211. package/dist/s-no-ssr/s-no-ssr.js +14 -15
  212. package/dist/s-overlay-scrollbar/index.js +3 -4
  213. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +0 -3
  214. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +34 -37
  215. package/dist/s-pagination/index.js +3 -4
  216. package/dist/s-pagination/s-pagination.d.ts +0 -3
  217. package/dist/s-pagination/s-pagination.js +31 -14
  218. package/dist/s-pixel-reveal/index.js +4 -4
  219. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +0 -3
  220. package/dist/s-pixel-reveal/s-pixel-reveal.js +138 -156
  221. package/dist/s-radial-pulse-animate/index.js +4 -4
  222. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +0 -3
  223. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +80 -122
  224. package/dist/s-rating/index.js +2 -3
  225. package/dist/s-rating/s-rating.d.ts +0 -3
  226. package/dist/s-rating/s-rating.js +11 -9
  227. package/dist/s-review/index.js +4 -4
  228. package/dist/s-review/s-review.d.ts +0 -3
  229. package/dist/s-review/s-review.js +4 -160
  230. package/dist/s-review-C1E6ASin.js +241 -0
  231. package/dist/s-scroll-reveal/index.js +3 -4
  232. package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +0 -3
  233. package/dist/s-scroll-reveal/s-scroll-reveal.js +68 -64
  234. package/dist/s-scroll-to-top/index.js +4 -4
  235. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +0 -3
  236. package/dist/s-scroll-to-top/s-scroll-to-top.js +45 -44
  237. package/dist/s-scroll-velocity/index.js +5 -8
  238. package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +0 -6
  239. package/dist/s-scroll-velocity/s-scroll-velocity.js +14 -8
  240. package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +0 -7
  241. package/dist/s-scroll-velocity/scroll-velocity-container.js +25 -30
  242. package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +0 -4
  243. package/dist/s-scroll-velocity/scroll-velocity-row.js +97 -118
  244. package/dist/s-select/index.js +4 -4
  245. package/dist/s-select/s-select.d.ts +0 -3
  246. package/dist/s-select/s-select.js +4 -112
  247. package/dist/s-select-CmsTrYmx.js +110 -0
  248. package/dist/s-select-list/index.js +3 -4
  249. package/dist/s-select-list/s-select-list.d.ts +0 -3
  250. package/dist/s-select-list/s-select-list.js +44 -49
  251. package/dist/s-skeleton/index.js +3 -4
  252. package/dist/s-skeleton/s-skeleton.d.ts +0 -3
  253. package/dist/s-skeleton/s-skeleton.js +69 -35
  254. package/dist/s-snackbar-message/index.js +3 -6
  255. package/dist/s-snackbar-message/s-snackbar-message.d.ts +0 -6
  256. package/dist/s-snackbar-message/s-snackbar-message.js +48 -61
  257. package/dist/s-spotlight-cursor/index.js +3 -4
  258. package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +0 -3
  259. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +58 -61
  260. package/dist/s-stripe/index.js +7 -10
  261. package/dist/s-stripe/s-stripe-cvc.d.ts +0 -1
  262. package/dist/s-stripe/s-stripe-cvc.js +15 -10
  263. package/dist/s-stripe/s-stripe-expiry.d.ts +0 -1
  264. package/dist/s-stripe/s-stripe-expiry.js +15 -10
  265. package/dist/s-stripe/s-stripe-number.d.ts +0 -1
  266. package/dist/s-stripe/s-stripe-number.js +13 -8
  267. package/dist/s-stripe/s-stripe.d.ts +0 -1
  268. package/dist/s-stripe/s-stripe.js +31 -37
  269. package/dist/s-stripe/stripe-input.js +57 -81
  270. package/dist/s-switch/index.js +2 -3
  271. package/dist/s-switch/s-switch.d.ts +0 -4
  272. package/dist/s-switch/s-switch.js +27 -17
  273. package/dist/s-tabs/index.js +5 -8
  274. package/dist/s-tabs/s-tab-panel.d.ts +0 -3
  275. package/dist/s-tabs/s-tab-panel.js +23 -29
  276. package/dist/s-tabs/s-tab.js +10 -7
  277. package/dist/s-tabs/s-tabs.d.ts +0 -3
  278. package/dist/s-tabs/s-tabs.js +39 -35
  279. package/dist/s-text-editor/index.js +4 -5
  280. package/dist/s-text-editor/s-text-editor-toolbar.d.ts +0 -29
  281. package/dist/s-text-editor/s-text-editor-toolbar.js +4 -207
  282. package/dist/s-text-editor/s-text-editor.d.ts +0 -3
  283. package/dist/s-text-editor/s-text-editor.js +74 -80
  284. package/dist/s-text-editor-toolbar-DC-dnSBG.js +177 -0
  285. package/dist/s-text-field/index.js +4 -4
  286. package/dist/s-text-field/s-text-field.d.ts +0 -3
  287. package/dist/s-text-field/s-text-field.js +4 -49
  288. package/dist/s-text-field-C2WdBxNO.js +41 -0
  289. package/dist/s-text-shimmer/index.js +4 -4
  290. package/dist/s-text-shimmer/s-text-shimmer.d.ts +0 -3
  291. package/dist/s-text-shimmer/s-text-shimmer.js +31 -32
  292. package/dist/s-text-truncation/index.js +2 -3
  293. package/dist/s-text-truncation/s-text-truncation.d.ts +0 -4
  294. package/dist/s-text-truncation/s-text-truncation.js +79 -81
  295. package/dist/s-theme-demo/index.js +4 -4
  296. package/dist/s-theme-demo/s-theme-demo.js +4 -380
  297. package/dist/s-theme-demo-ChEG6wog.js +828 -0
  298. package/dist/s-theme-provider/index.js +4 -4
  299. package/dist/s-theme-provider/s-theme-provider.d.ts +0 -1
  300. package/dist/s-theme-provider/s-theme-provider.js +35 -50
  301. package/dist/s-theme-switch/index.js +4 -4
  302. package/dist/s-theme-switch/s-theme-switch.js +4 -41
  303. package/dist/s-theme-switch-uXRVJIf_.js +37 -0
  304. package/dist/s-tip/index.js +4 -4
  305. package/dist/s-tip/s-tip.d.ts +0 -3
  306. package/dist/s-tip/s-tip.js +4 -34
  307. package/dist/s-tip-oiH-79gR.js +34 -0
  308. package/dist/s-tool-bar/index.js +4 -4
  309. package/dist/s-tool-bar/s-tool-bar.d.ts +0 -4
  310. package/dist/s-tool-bar/s-tool-bar.js +4 -478
  311. package/dist/s-tool-bar-CM-cxOkI.js +404 -0
  312. package/dist/s-two-pane-layout/index.js +3 -3
  313. package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +0 -3
  314. package/dist/s-two-pane-layout/s-two-pane-layout.js +101 -100
  315. package/dist/s-typewriter-text/index.js +3 -4
  316. package/dist/s-typewriter-text/s-typewriter-text.d.ts +0 -3
  317. package/dist/s-typewriter-text/s-typewriter-text.js +39 -45
  318. package/dist/s-zoom-image/index.js +2 -3
  319. package/dist/s-zoom-image/s-zoom-image.d.ts +0 -3
  320. package/dist/s-zoom-image/s-zoom-image.js +62 -88
  321. package/dist/select-CjaxyZK_.js +11 -0
  322. package/dist/styled-CjUxhIJh.js +168 -0
  323. package/dist/svgIconClasses-DOmb6RsS.js +20 -0
  324. package/dist/tabClasses-DoD3-n6K.js +21 -0
  325. package/dist/theme/components/accordion-details.js +7 -8
  326. package/dist/theme/components/accordion-summary.js +12 -17
  327. package/dist/theme/components/accordion.js +24 -32
  328. package/dist/theme/components/alert.js +45 -72
  329. package/dist/theme/components/app-bar.js +12 -18
  330. package/dist/theme/components/autocomplete.js +19 -30
  331. package/dist/theme/components/avatar.js +4 -13
  332. package/dist/theme/components/backdrop.js +13 -12
  333. package/dist/theme/components/button-base.js +12 -14
  334. package/dist/theme/components/button.js +92 -138
  335. package/dist/theme/components/card-actions.js +4 -10
  336. package/dist/theme/components/card-content.js +4 -11
  337. package/dist/theme/components/card-header.js +4 -10
  338. package/dist/theme/components/card.js +23 -35
  339. package/dist/theme/components/checkbox.js +4 -65
  340. package/dist/theme/components/chip.js +67 -106
  341. package/dist/theme/components/components.js +113 -111
  342. package/dist/theme/components/container.js +4 -6
  343. package/dist/theme/components/dialog-actions.js +4 -10
  344. package/dist/theme/components/dialog.js +11 -17
  345. package/dist/theme/components/drawer.js +4 -10
  346. package/dist/theme/components/form-control.js +4 -10
  347. package/dist/theme/components/form-label.js +7 -11
  348. package/dist/theme/components/icon-button.js +82 -132
  349. package/dist/theme/components/icon.js +9 -21
  350. package/dist/theme/components/input-adornment.js +7 -13
  351. package/dist/theme/components/input-base.js +10 -16
  352. package/dist/theme/components/linear-progress.js +11 -16
  353. package/dist/theme/components/link.js +31 -37
  354. package/dist/theme/components/list-item-button.js +27 -44
  355. package/dist/theme/components/list-item-icon.js +4 -10
  356. package/dist/theme/components/list-item-text.js +14 -16
  357. package/dist/theme/components/list-item.js +12 -20
  358. package/dist/theme/components/list-subheader.js +10 -14
  359. package/dist/theme/components/list.js +9 -13
  360. package/dist/theme/components/menu-item.js +7 -8
  361. package/dist/theme/components/menu.js +20 -22
  362. package/dist/theme/components/outlined-input.js +41 -64
  363. package/dist/theme/components/pagination-item.js +8 -18
  364. package/dist/theme/components/paper.js +4 -8
  365. package/dist/theme/components/popover.js +11 -13
  366. package/dist/theme/components/rating.js +4 -8
  367. package/dist/theme/components/select.js +4 -13
  368. package/dist/theme/components/skeleton.js +4 -10
  369. package/dist/theme/components/slider.js +4 -8
  370. package/dist/theme/components/step-connector.js +9 -13
  371. package/dist/theme/components/step-icon.js +39 -46
  372. package/dist/theme/components/step-label.js +7 -13
  373. package/dist/theme/components/svg-icon.js +20 -37
  374. package/dist/theme/components/tab.js +20 -34
  375. package/dist/theme/components/table-cell.js +4 -10
  376. package/dist/theme/components/table-pagination.js +14 -18
  377. package/dist/theme/components/tabs.js +20 -24
  378. package/dist/theme/components/toggle-button-group.js +3 -23
  379. package/dist/theme/components/toggle-button.js +3 -21
  380. package/dist/theme/components/tooltip.js +23 -23
  381. package/dist/theme/theme-primitives.js +3 -410
  382. package/dist/theme-primitives-Csxbv-2Y.js +398 -0
  383. package/dist/toggle-button-CAcYep44.js +26 -0
  384. package/dist/toggle-button-group-BCHnFS_B.js +28 -0
  385. package/dist/typographyClasses-YJ-sLvHS.js +32 -0
  386. package/dist/useControlled-DZKvfhNx.js +32 -0
  387. package/dist/useEnhancedEffect-C_B_y6Db.js +5 -0
  388. package/dist/useFormControl-y5Pput5X.js +11 -0
  389. package/dist/useMobilePicker-CVsWEjX5.js +10635 -0
  390. package/dist/useTheme-B8aCSYJ4.js +34 -0
  391. package/dist/useThemeProps-CeO0wKq2.js +19 -0
  392. package/dist/utils/dayjs.js +161 -113
  393. package/dist/utils/index.js +3 -11
  394. package/dist/utils/logger.js +45 -46
  395. package/dist/utils-Cj6R-BZe.js +72 -0
  396. package/dist/warning-Bc_24lbr.js +110 -0
  397. package/package.json +29 -29
  398. package/dist/ArrowUpward-D8eqD-si.js +0 -8
  399. package/dist/Box-BkXoTbe8.js +0 -62
  400. package/dist/ButtonBase-D73M0QY5.js +0 -1099
  401. package/dist/ChevronLeft-BmgmPHp9.js +0 -8
  402. package/dist/ChevronRight-DbWSr8yz.js +0 -8
  403. package/dist/Close-lHCUMitI.js +0 -8
  404. package/dist/ContentCopy-D4SuJd86.js +0 -11
  405. package/dist/DefaultPropsProvider-DPuuPIbS.js +0 -64
  406. package/dist/Download-BoRQUwCf.js +0 -8
  407. package/dist/ExpandMore-C7yRQv1-.js +0 -8
  408. package/dist/Favorite-Bz_HcMgN.js +0 -8
  409. package/dist/Menu-GVFDMHCN.js +0 -2441
  410. package/dist/MenuItem-2wG8I2HO.js +0 -269
  411. package/dist/Paper-CR019bki.js +0 -553
  412. package/dist/Select-D2l9rDWL.js +0 -3966
  413. package/dist/Stack-Dfjnuorw.js +0 -174
  414. package/dist/Typography-PcmlIqm1.js +0 -253
  415. package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
  416. package/dist/buttonBaseClasses-jtnoTmPn.js +0 -10
  417. package/dist/clsx-OuTLNxxd.js +0 -16
  418. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  419. package/dist/createSvgIcon-BkbeLOhM.js +0 -242
  420. package/dist/createTheme-DgoJyWM-.js +0 -2929
  421. package/dist/defaultTheme-CulFxfLR.js +0 -5
  422. package/dist/extendSxProp-BJEIxcAx.js +0 -36
  423. package/dist/generateUtilityClass-BhfUaMgk.js +0 -35
  424. package/dist/generateUtilityClasses-E9gROIFd.js +0 -10
  425. package/dist/iconButtonClasses-BMfIhNTh.js +0 -10
  426. package/dist/identifier-BKLqN993.js +0 -4
  427. package/dist/index-D3G5Rwl-.js +0 -211
  428. package/dist/index-DtGYsHSv.js +0 -94
  429. package/dist/jsx-runtime-tc70JA_2.js +0 -264
  430. package/dist/mergeSlotProps-CuzBQdlp.js +0 -62
  431. package/dist/objectWithoutPropertiesLoose-DiWPeE4c.js +0 -22
  432. package/dist/outlinedInputClasses-DnwW3ujt.js +0 -19
  433. package/dist/resolveProps-BDH0VJjn.js +0 -39
  434. package/dist/styled-8Y5KoVix.js +0 -203
  435. package/dist/svgIconClasses-C6auqaBA.js +0 -10
  436. package/dist/tabClasses-DFvXsFrN.js +0 -10
  437. package/dist/typographyClasses-jmoWZuXc.js +0 -10
  438. package/dist/useControlled-D1L5tREc.js +0 -31
  439. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  440. package/dist/useFormControl-CatNKXAi.js +0 -10
  441. package/dist/useMobilePicker-B-bNHHXB.js +0 -13498
  442. package/dist/useTheme-CWPkv7g3.js +0 -18
  443. package/dist/useThemeProps-XYgXGzjS.js +0 -27
  444. package/dist/utils-D1UMIV0b.js +0 -40
  445. package/dist/warning-Ba-7BBAN.js +0 -135
@@ -1,207 +1,4 @@
1
- import { j as c } from "../jsx-runtime-tc70JA_2.js";
2
- import * as l from "react";
3
- import { c as a } from "../createSvgIcon-BkbeLOhM.js";
4
- import { MenuItem as m } from "@mui/material";
5
- import { STextField as x } from "../s-text-field/s-text-field.js";
6
- import { I as d, S as j, F as k } from "../Select-D2l9rDWL.js";
7
- import { S as f } from "../Stack-Dfjnuorw.js";
8
- import { P as H } from "../Menu-GVFDMHCN.js";
9
- const L = a(/* @__PURE__ */ c.jsx("path", {
10
- 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"
11
- }), "Code"), b = a(/* @__PURE__ */ c.jsx("path", {
12
- 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"
13
- }), "FormatBold"), C = a(/* @__PURE__ */ c.jsx("path", {
14
- d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
15
- }), "FormatItalic"), I = a(/* @__PURE__ */ c.jsx("path", {
16
- 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"
17
- }), "FormatListBulleted"), S = a(/* @__PURE__ */ c.jsx("path", {
18
- d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"
19
- }), "FormatListNumbered"), g = a(/* @__PURE__ */ c.jsx("path", {
20
- 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"
21
- }), "Link"), z = a(/* @__PURE__ */ c.jsx("path", {
22
- 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"
23
- }), "StrikethroughS"), N = ({ editor: n }) => {
24
- const [o, e] = l.useState(!1), [p, i] = l.useState(null), [r, h] = l.useState("");
25
- return /* @__PURE__ */ c.jsxs(l.Fragment, { children: [
26
- /* @__PURE__ */ c.jsx(
27
- f,
28
- {
29
- className: "tiptap-toolbar",
30
- spacing: 1,
31
- sx: {
32
- borderBottom: "1px solid",
33
- borderColor: "divider",
34
- p: "8px",
35
- minHeight: "57px"
36
- },
37
- children: n ? /* @__PURE__ */ c.jsxs(f, { direction: "row", spacing: 0.5, sx: { alignItems: "center", flexWrap: "wrap" }, children: [
38
- /* @__PURE__ */ c.jsxs(
39
- j,
40
- {
41
- onChange: (s) => {
42
- const u = s.target.value;
43
- if (u) {
44
- if (u === "p") {
45
- n.chain().focus().setParagraph().run();
46
- return;
47
- }
48
- if (u.startsWith("h")) {
49
- const v = parseInt(u.replace("h", ""));
50
- !isNaN(v) && v >= 1 && v <= 6 && n.chain().focus().setHeading({ level: v }).run();
51
- }
52
- }
53
- },
54
- value: B(n),
55
- children: [
56
- /* @__PURE__ */ c.jsx(m, { disabled: !n.can().chain().focus().setParagraph().run(), value: "p", children: "Paragraph" }),
57
- [1, 2, 3, 4, 5, 6].map((s) => /* @__PURE__ */ c.jsxs(
58
- m,
59
- {
60
- disabled: !n.can().chain().focus().setHeading({ level: s }).run(),
61
- value: `h${s}`,
62
- children: [
63
- "Heading ",
64
- s
65
- ]
66
- },
67
- s
68
- ))
69
- ]
70
- }
71
- ),
72
- /* @__PURE__ */ c.jsx(
73
- t,
74
- {
75
- active: n.isActive("bold"),
76
- disabled: !n.can().chain().focus().toggleBold().run(),
77
- onClick: () => {
78
- n.chain().focus().toggleBold().run();
79
- },
80
- children: /* @__PURE__ */ c.jsx(b, {})
81
- }
82
- ),
83
- /* @__PURE__ */ c.jsx(
84
- t,
85
- {
86
- active: n.isActive("italic"),
87
- disabled: !n.can().chain().focus().toggleItalic().run(),
88
- onClick: () => {
89
- n.chain().focus().toggleItalic().run();
90
- },
91
- children: /* @__PURE__ */ c.jsx(C, {})
92
- }
93
- ),
94
- /* @__PURE__ */ c.jsx(
95
- t,
96
- {
97
- active: n.isActive("strike"),
98
- disabled: !n.can().chain().focus().toggleStrike().run(),
99
- onClick: () => {
100
- n.chain().focus().toggleStrike().run();
101
- },
102
- children: /* @__PURE__ */ c.jsx(z, {})
103
- }
104
- ),
105
- /* @__PURE__ */ c.jsx(
106
- t,
107
- {
108
- active: n.isActive("codeBlock"),
109
- disabled: !n.can().chain().focus().toggleCodeBlock().run(),
110
- onClick: () => {
111
- n.chain().focus().toggleCodeBlock();
112
- },
113
- children: /* @__PURE__ */ c.jsx(L, {})
114
- }
115
- ),
116
- /* @__PURE__ */ c.jsx(
117
- t,
118
- {
119
- active: n.isActive("bulletList"),
120
- disabled: !n.can().chain().focus().toggleBulletList().run(),
121
- onClick: () => {
122
- n.chain().focus().toggleBulletList().run();
123
- },
124
- children: /* @__PURE__ */ c.jsx(I, {})
125
- }
126
- ),
127
- /* @__PURE__ */ c.jsx(
128
- t,
129
- {
130
- active: n.isActive("orderedList"),
131
- disabled: !n.can().chain().focus().toggleOrderedList().run(),
132
- onClick: () => {
133
- n.chain().focus().toggleOrderedList().run();
134
- },
135
- children: /* @__PURE__ */ c.jsx(S, {})
136
- }
137
- ),
138
- /* @__PURE__ */ c.jsx(
139
- t,
140
- {
141
- onClick: (s) => {
142
- h(n.getAttributes("link").href ?? ""), i(s.currentTarget), e(!0);
143
- },
144
- children: /* @__PURE__ */ c.jsx(g, {})
145
- }
146
- ),
147
- /* @__PURE__ */ c.jsx(
148
- t,
149
- {
150
- active: n.isActive("link"),
151
- disabled: !n.can().chain().focus().unsetLink().run(),
152
- onClick: () => {
153
- n.chain().focus().unsetLink().run();
154
- },
155
- children: /* @__PURE__ */ c.jsx(g, {})
156
- }
157
- )
158
- ] }) : null
159
- }
160
- ),
161
- /* @__PURE__ */ c.jsx(
162
- H,
163
- {
164
- anchorEl: p,
165
- anchorOrigin: { horizontal: "left", vertical: "bottom" },
166
- onClose: () => {
167
- e(!1), i(null), h("");
168
- },
169
- open: o,
170
- slotProps: { paper: { sx: { p: 2 } } },
171
- children: /* @__PURE__ */ c.jsx(k, { children: /* @__PURE__ */ c.jsx(
172
- x,
173
- {
174
- name: "url",
175
- label: "URL",
176
- onChange: (s) => {
177
- h(s.target.value);
178
- },
179
- onKeyUp: (s) => {
180
- if (s.key === "Enter") {
181
- if (r === "") {
182
- n?.chain().focus().extendMarkRange("link").unsetLink().run();
183
- return;
184
- }
185
- n?.chain().focus().setLink({ href: r }).run(), e(!1), i(null), h("");
186
- }
187
- },
188
- value: r
189
- }
190
- ) })
191
- }
192
- )
193
- ] });
194
- };
195
- function B(n) {
196
- if (n.isActive("paragraph")) return "p";
197
- const o = [1, 2, 3, 4, 5, 6];
198
- for (const e of o)
199
- if (n.isActive("heading", { level: e })) return `h${e}`;
200
- return "p";
201
- }
202
- const t = l.forwardRef(function({ active: o, children: e, disabled: p, onClick: i }, r) {
203
- return /* @__PURE__ */ c.jsx(d, { color: o ? "primary" : "inherit", disabled: p, onClick: i, ref: r, children: e });
204
- });
205
- export {
206
- N as STextEditorToolbar
207
- };
1
+ import "../createTheme-CMuiGmV-.js";
2
+ import "../jsx-runtime-V-UOMaX1.js";
3
+ import { t as e } from "../s-text-editor-toolbar-DC-dnSBG.js";
4
+ export { e as STextEditorToolbar };
@@ -15,9 +15,6 @@ export interface STextEditorProps {
15
15
  /** Placeholder text shown when editor is empty */
16
16
  placeholder?: string;
17
17
  }
18
- /**
19
- * A powerful rich text editor built on Tiptap with an integrated toolbar.
20
- */
21
18
  export declare const STextEditor: {
22
19
  ({ content, editable, hideToolbar, onUpdate, placeholder, }: STextEditorProps): React.JSX.Element;
23
20
  displayName: string;
@@ -1,82 +1,76 @@
1
- import { j as r } 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 f, EditorContent as d } from "@tiptap/react";
1
+ import "../createTheme-CMuiGmV-.js";
2
+ import { t as e } from "../jsx-runtime-V-UOMaX1.js";
3
+ import { t } from "../Box-a5uPlxYL.js";
4
+ import { t as n } from "../s-text-editor-toolbar-DC-dnSBG.js";
5
+ import * as r from "react";
6
+ import { Link as i } from "@tiptap/extension-link";
7
+ import { Placeholder as a } from "@tiptap/extension-placeholder";
8
+ import { EditorContent as o, useEditor as s } from "@tiptap/react";
6
9
  import { StarterKit as c } from "@tiptap/starter-kit";
7
- import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
8
- import { B as u } from "../Box-BkXoTbe8.js";
9
- const h = ({
10
- content: o,
11
- editable: t = !0,
12
- hideToolbar: i,
13
- onUpdate: s = () => {
14
- },
15
- placeholder: a
16
- }) => {
17
- const l = [
18
- c,
19
- m.configure({ emptyEditorClass: "is-editor-empty", placeholder: a }),
20
- n.configure({ openOnClick: !1, autolink: !0 })
21
- ], e = f({
22
- extensions: l,
23
- content: o,
24
- editable: t,
25
- onUpdate: s,
26
- parseOptions: {
27
- preserveWhitespace: "full"
28
- }
29
- });
30
- return p.useEffect(() => {
31
- e && e.getHTML() !== o && e.commands.setContent(o);
32
- }, [o, e]), /* @__PURE__ */ r.jsxs(
33
- u,
34
- {
35
- className: "tiptap-root",
36
- sx: {
37
- display: "flex",
38
- flexDirection: "column",
39
- ...t && {
40
- border: "1px solid",
41
- borderColor: "divider",
42
- borderRadius: 1
43
- },
44
- "& .tiptap-container": {
45
- display: "flex",
46
- flex: "1 1 auto",
47
- flexDirection: "column",
48
- minHeight: 0,
49
- height: "12rem"
50
- },
51
- "& .tiptap": {
52
- color: "text.primary",
53
- flex: "1 1 auto",
54
- overflow: "auto",
55
- fontSize: "0.875rem",
56
- p: "8px 16px",
57
- "&:focus-visible": { outline: "none" },
58
- "&.resize-cursor": {
59
- cursor: "ew-resize",
60
- "& table": { cursor: "col-resize" }
61
- },
62
- "& .is-editor-empty:before": {
63
- color: "divider",
64
- content: "attr(data-placeholder)",
65
- float: "left",
66
- height: 0,
67
- pointerEvents: "none"
68
- }
69
- }
70
- },
71
- children: [
72
- i ? /* @__PURE__ */ r.jsx("div", {}) : /* @__PURE__ */ r.jsx(x, { editor: e }),
73
- /* @__PURE__ */ r.jsx(d, { className: "tiptap-container", editor: e })
74
- ]
75
- }
76
- );
77
- };
78
- h.displayName = "STextEditor";
79
- export {
80
- h as STextEditor,
81
- h as default
10
+ //#region lib/s-text-editor/s-text-editor.tsx
11
+ var l = e(), u = ({ content: e, editable: u = !0, hideToolbar: d, onUpdate: f = () => {}, placeholder: p }) => {
12
+ let m = s({
13
+ extensions: [
14
+ c,
15
+ a.configure({
16
+ emptyEditorClass: "is-editor-empty",
17
+ placeholder: p
18
+ }),
19
+ i.configure({
20
+ openOnClick: !1,
21
+ autolink: !0
22
+ })
23
+ ],
24
+ content: e,
25
+ editable: u,
26
+ onUpdate: f,
27
+ parseOptions: { preserveWhitespace: "full" }
28
+ });
29
+ return r.useEffect(() => {
30
+ m && m.getHTML() !== e && m.commands.setContent(e);
31
+ }, [e, m]), /* @__PURE__ */ (0, l.jsxs)(t, {
32
+ className: "tiptap-root",
33
+ sx: {
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ ...u && {
37
+ border: "1px solid",
38
+ borderColor: "divider",
39
+ borderRadius: 1
40
+ },
41
+ "& .tiptap-container": {
42
+ display: "flex",
43
+ flex: "1 1 auto",
44
+ flexDirection: "column",
45
+ minHeight: 0,
46
+ height: "12rem"
47
+ },
48
+ "& .tiptap": {
49
+ color: "text.primary",
50
+ flex: "1 1 auto",
51
+ overflow: "auto",
52
+ fontSize: "0.875rem",
53
+ p: "8px 16px",
54
+ "&:focus-visible": { outline: "none" },
55
+ "&.resize-cursor": {
56
+ cursor: "ew-resize",
57
+ "& table": { cursor: "col-resize" }
58
+ },
59
+ "& .is-editor-empty:before": {
60
+ color: "divider",
61
+ content: "attr(data-placeholder)",
62
+ float: "left",
63
+ height: 0,
64
+ pointerEvents: "none"
65
+ }
66
+ }
67
+ },
68
+ children: [d ? /* @__PURE__ */ (0, l.jsx)("div", {}) : /* @__PURE__ */ (0, l.jsx)(n, { editor: m }), /* @__PURE__ */ (0, l.jsx)(o, {
69
+ className: "tiptap-container",
70
+ editor: m
71
+ })]
72
+ });
82
73
  };
74
+ u.displayName = "STextEditor";
75
+ //#endregion
76
+ export { u as STextEditor, u as default };
@@ -0,0 +1,177 @@
1
+ import { n as e } from "./Menu-BB3Khkc0.js";
2
+ import { t } from "./jsx-runtime-V-UOMaX1.js";
3
+ import { t as n } from "./Stack-BJ4hQFAK.js";
4
+ import { a as r, n as i, t as a } from "./Select-B9880Uge.js";
5
+ import { t as o } from "./createSvgIcon-Bs2KOQvq.js";
6
+ import { t as s } from "./s-text-field-C2WdBxNO.js";
7
+ import * as c from "react";
8
+ import { MenuItem as l } from "@mui/material";
9
+ //#region ../../node_modules/@mui/icons-material/esm/Code.js
10
+ var u = t(), d = o(/* @__PURE__ */ (0, u.jsx)("path", { 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" }), "Code"), f = o(/* @__PURE__ */ (0, u.jsx)("path", { 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" }), "FormatBold"), p = o(/* @__PURE__ */ (0, u.jsx)("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }), "FormatItalic"), m = o(/* @__PURE__ */ (0, u.jsx)("path", { 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" }), "FormatListBulleted"), h = o(/* @__PURE__ */ (0, u.jsx)("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z" }), "FormatListNumbered"), g = o(/* @__PURE__ */ (0, u.jsx)("path", { 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" }), "Link"), _ = o(/* @__PURE__ */ (0, u.jsx)("path", { 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" }), "StrikethroughS"), v = ({ editor: t }) => {
11
+ let [r, o] = c.useState(!1), [v, x] = c.useState(null), [S, C] = c.useState("");
12
+ return /* @__PURE__ */ (0, u.jsxs)(c.Fragment, { children: [/* @__PURE__ */ (0, u.jsx)(n, {
13
+ className: "tiptap-toolbar",
14
+ spacing: 1,
15
+ sx: {
16
+ borderBottom: "1px solid",
17
+ borderColor: "divider",
18
+ p: "8px",
19
+ minHeight: "57px"
20
+ },
21
+ children: t ? /* @__PURE__ */ (0, u.jsxs)(n, {
22
+ direction: "row",
23
+ spacing: .5,
24
+ sx: {
25
+ alignItems: "center",
26
+ flexWrap: "wrap"
27
+ },
28
+ children: [
29
+ /* @__PURE__ */ (0, u.jsxs)(a, {
30
+ onChange: (e) => {
31
+ let n = e.target.value;
32
+ if (n) {
33
+ if (n === "p") {
34
+ t.chain().focus().setParagraph().run();
35
+ return;
36
+ }
37
+ if (n.startsWith("h")) {
38
+ let e = parseInt(n.replace("h", ""));
39
+ !isNaN(e) && e >= 1 && e <= 6 && t.chain().focus().setHeading({ level: e }).run();
40
+ }
41
+ }
42
+ },
43
+ value: y(t),
44
+ children: [/* @__PURE__ */ (0, u.jsx)(l, {
45
+ disabled: !t.can().chain().focus().setParagraph().run(),
46
+ value: "p",
47
+ children: "Paragraph"
48
+ }), [
49
+ 1,
50
+ 2,
51
+ 3,
52
+ 4,
53
+ 5,
54
+ 6
55
+ ].map((e) => /* @__PURE__ */ (0, u.jsxs)(l, {
56
+ disabled: !t.can().chain().focus().setHeading({ level: e }).run(),
57
+ value: `h${e}`,
58
+ children: ["Heading ", e]
59
+ }, e))]
60
+ }),
61
+ /* @__PURE__ */ (0, u.jsx)(b, {
62
+ active: t.isActive("bold"),
63
+ disabled: !t.can().chain().focus().toggleBold().run(),
64
+ onClick: () => {
65
+ t.chain().focus().toggleBold().run();
66
+ },
67
+ children: /* @__PURE__ */ (0, u.jsx)(f, {})
68
+ }),
69
+ /* @__PURE__ */ (0, u.jsx)(b, {
70
+ active: t.isActive("italic"),
71
+ disabled: !t.can().chain().focus().toggleItalic().run(),
72
+ onClick: () => {
73
+ t.chain().focus().toggleItalic().run();
74
+ },
75
+ children: /* @__PURE__ */ (0, u.jsx)(p, {})
76
+ }),
77
+ /* @__PURE__ */ (0, u.jsx)(b, {
78
+ active: t.isActive("strike"),
79
+ disabled: !t.can().chain().focus().toggleStrike().run(),
80
+ onClick: () => {
81
+ t.chain().focus().toggleStrike().run();
82
+ },
83
+ children: /* @__PURE__ */ (0, u.jsx)(_, {})
84
+ }),
85
+ /* @__PURE__ */ (0, u.jsx)(b, {
86
+ active: t.isActive("codeBlock"),
87
+ disabled: !t.can().chain().focus().toggleCodeBlock().run(),
88
+ onClick: () => {
89
+ t.chain().focus().toggleCodeBlock();
90
+ },
91
+ children: /* @__PURE__ */ (0, u.jsx)(d, {})
92
+ }),
93
+ /* @__PURE__ */ (0, u.jsx)(b, {
94
+ active: t.isActive("bulletList"),
95
+ disabled: !t.can().chain().focus().toggleBulletList().run(),
96
+ onClick: () => {
97
+ t.chain().focus().toggleBulletList().run();
98
+ },
99
+ children: /* @__PURE__ */ (0, u.jsx)(m, {})
100
+ }),
101
+ /* @__PURE__ */ (0, u.jsx)(b, {
102
+ active: t.isActive("orderedList"),
103
+ disabled: !t.can().chain().focus().toggleOrderedList().run(),
104
+ onClick: () => {
105
+ t.chain().focus().toggleOrderedList().run();
106
+ },
107
+ children: /* @__PURE__ */ (0, u.jsx)(h, {})
108
+ }),
109
+ /* @__PURE__ */ (0, u.jsx)(b, {
110
+ onClick: (e) => {
111
+ C(t.getAttributes("link").href ?? ""), x(e.currentTarget), o(!0);
112
+ },
113
+ children: /* @__PURE__ */ (0, u.jsx)(g, {})
114
+ }),
115
+ /* @__PURE__ */ (0, u.jsx)(b, {
116
+ active: t.isActive("link"),
117
+ disabled: !t.can().chain().focus().unsetLink().run(),
118
+ onClick: () => {
119
+ t.chain().focus().unsetLink().run();
120
+ },
121
+ children: /* @__PURE__ */ (0, u.jsx)(g, {})
122
+ })
123
+ ]
124
+ }) : null
125
+ }), /* @__PURE__ */ (0, u.jsx)(e, {
126
+ anchorEl: v,
127
+ anchorOrigin: {
128
+ horizontal: "left",
129
+ vertical: "bottom"
130
+ },
131
+ onClose: () => {
132
+ o(!1), x(null), C("");
133
+ },
134
+ open: r,
135
+ slotProps: { paper: { sx: { p: 2 } } },
136
+ children: /* @__PURE__ */ (0, u.jsx)(i, { children: /* @__PURE__ */ (0, u.jsx)(s, {
137
+ name: "url",
138
+ label: "URL",
139
+ onChange: (e) => {
140
+ C(e.target.value);
141
+ },
142
+ onKeyUp: (e) => {
143
+ if (e.key === "Enter") {
144
+ if (S === "") {
145
+ t?.chain().focus().extendMarkRange("link").unsetLink().run();
146
+ return;
147
+ }
148
+ t?.chain().focus().setLink({ href: S }).run(), o(!1), x(null), C("");
149
+ }
150
+ },
151
+ value: S
152
+ }) })
153
+ })] });
154
+ };
155
+ function y(e) {
156
+ if (e.isActive("paragraph")) return "p";
157
+ for (let t of [
158
+ 1,
159
+ 2,
160
+ 3,
161
+ 4,
162
+ 5,
163
+ 6
164
+ ]) if (e.isActive("heading", { level: t })) return `h${t}`;
165
+ return "p";
166
+ }
167
+ var b = c.forwardRef(function({ active: e, children: t, disabled: n, onClick: i }, a) {
168
+ return /* @__PURE__ */ (0, u.jsx)(r, {
169
+ color: e ? "primary" : "inherit",
170
+ disabled: n,
171
+ onClick: i,
172
+ ref: a,
173
+ children: t
174
+ });
175
+ });
176
+ //#endregion
177
+ export { v as t };
@@ -1,4 +1,4 @@
1
- import { STextField as a } from "./s-text-field.js";
2
- export {
3
- a as default
4
- };
1
+ import "../createTheme-CMuiGmV-.js";
2
+ import "../jsx-runtime-V-UOMaX1.js";
3
+ import { t as e } from "../s-text-field-C2WdBxNO.js";
4
+ export { e as default };
@@ -15,9 +15,6 @@ export type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'erro
15
15
  /** Help text shown in tooltip next to the label */
16
16
  hint?: string;
17
17
  };
18
- /**
19
- * An enhanced text field component with integrated form labeling, error handling, and password visibility toggle.
20
- */
21
18
  export declare const STextField: {
22
19
  ({ label, required, error, type, htmlFor, hint, ...props }: STextFieldProps): React.JSX.Element;
23
20
  displayName: string;
@@ -1,49 +1,4 @@
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-BkbeLOhM.js";
6
- const b = r(/* @__PURE__ */ s.jsx("path", {
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"), g = r(/* @__PURE__ */ s.jsx("path", {
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"), P = ({
11
- label: d = "",
12
- required: c = !1,
13
- error: t,
14
- type: o = "text",
15
- htmlFor: e,
16
- hint: a,
17
- ...l
18
- }) => {
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,
23
- {
24
- "aria-label": "toggle password visibility",
25
- onClick: m,
26
- edge: "end",
27
- size: "small",
28
- children: i ? /* @__PURE__ */ s.jsx(g, {}) : /* @__PURE__ */ s.jsx(b, {})
29
- }
30
- ) }) : void 0;
31
- return /* @__PURE__ */ s.jsx(y, { label: d, hint: a, error: t, required: c, htmlFor: e, children: /* @__PURE__ */ s.jsx(
32
- j,
33
- {
34
- fullWidth: !0,
35
- type: x,
36
- id: e,
37
- error: !!t,
38
- ...l,
39
- slotProps: {
40
- input: { endAdornment: f, ...l.slotProps?.input }
41
- }
42
- }
43
- ) });
44
- };
45
- P.displayName = "STextField";
46
- export {
47
- P as STextField,
48
- P as default
49
- };
1
+ import "../createTheme-CMuiGmV-.js";
2
+ import "../jsx-runtime-V-UOMaX1.js";
3
+ import { t as e } from "../s-text-field-C2WdBxNO.js";
4
+ export { e as STextField, e as default };