@solostylist/ui-kit 1.0.167 → 1.0.169

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 (248) hide show
  1. package/dist/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
  2. package/dist/main.d.ts +5 -3
  3. package/dist/main.js +187 -173
  4. package/dist/s-accordion/index.js +2 -2
  5. package/dist/s-accordion/s-accordion.d.ts +17 -1
  6. package/dist/s-accordion/s-accordion.js +252 -238
  7. package/dist/s-action-overlay/index.js +1 -1
  8. package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
  9. package/dist/s-action-overlay/s-action-overlay.js +67 -55
  10. package/dist/s-ai-tool-bar/index.d.ts +2 -0
  11. package/dist/s-ai-tool-bar/index.js +3 -2
  12. package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +33 -22
  13. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +295 -247
  14. package/dist/s-autocomplete/index.js +2 -2
  15. package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
  16. package/dist/s-autocomplete/s-autocomplete.js +25 -17
  17. package/dist/s-avatar/index.js +2 -2
  18. package/dist/s-avatar/s-avatar.d.ts +16 -1
  19. package/dist/s-avatar/s-avatar.js +23 -10
  20. package/dist/s-blur-text/index.js +2 -2
  21. package/dist/s-blur-text/s-blur-text.d.ts +4 -13
  22. package/dist/s-blur-text/s-blur-text.js +57 -51
  23. package/dist/s-breadcrumbs/index.js +2 -2
  24. package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
  25. package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
  26. package/dist/s-button/index.js +2 -2
  27. package/dist/s-button/s-button.d.ts +7 -1
  28. package/dist/s-button/s-button.js +15 -5
  29. package/dist/s-button-link/index.js +2 -2
  30. package/dist/s-button-link/s-button-link.d.ts +12 -26
  31. package/dist/s-button-link/s-button-link.js +36 -26
  32. package/dist/s-carousel/index.js +1 -1
  33. package/dist/s-carousel/s-carousel.d.ts +11 -1
  34. package/dist/s-carousel/s-carousel.js +233 -223
  35. package/dist/s-category-card/index.js +2 -2
  36. package/dist/s-category-card/s-category-card.d.ts +28 -1
  37. package/dist/s-category-card/s-category-card.js +77 -58
  38. package/dist/s-chat-input/index.js +2 -2
  39. package/dist/s-chat-input/s-chat-input.d.ts +12 -1
  40. package/dist/s-chat-input/s-chat-input.js +92 -82
  41. package/dist/s-chat-message/index.js +2 -2
  42. package/dist/s-chat-message/s-chat-message.d.ts +22 -1
  43. package/dist/s-chat-message/s-chat-message.js +144 -133
  44. package/dist/s-checkbox/index.js +2 -2
  45. package/dist/s-checkbox/s-checkbox.d.ts +2 -15
  46. package/dist/s-checkbox/s-checkbox.js +20 -10
  47. package/dist/s-chip/index.js +2 -2
  48. package/dist/s-chip/s-chip.d.ts +7 -1
  49. package/dist/s-chip/s-chip.js +15 -5
  50. package/dist/s-chips/index.js +2 -2
  51. package/dist/s-chips/s-chips.d.ts +5 -18
  52. package/dist/s-chips/s-chips.js +56 -41
  53. package/dist/s-comment-message/index.js +2 -2
  54. package/dist/s-comment-message/s-comment-message.d.ts +26 -1
  55. package/dist/s-comment-message/s-comment-message.js +95 -89
  56. package/dist/s-copyable-text/index.js +1 -1
  57. package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
  58. package/dist/s-copyable-text/s-copyable-text.js +31 -21
  59. package/dist/s-countdown/index.d.ts +3 -2
  60. package/dist/s-countdown/index.js +4 -3
  61. package/dist/s-countdown/s-count-box.d.ts +39 -0
  62. package/dist/s-countdown/s-count-box.js +112 -0
  63. package/dist/s-countdown/s-count-down.d.ts +6 -50
  64. package/dist/s-countdown/s-count-down.js +110 -175
  65. package/dist/s-data-table/index.js +2 -2
  66. package/dist/s-data-table/s-data-table.d.ts +9 -65
  67. package/dist/s-data-table/s-data-table.js +381 -371
  68. package/dist/s-date-picker/index.js +2 -2
  69. package/dist/s-date-picker/s-date-picker.d.ts +6 -17
  70. package/dist/s-date-picker/s-date-picker.js +124 -107
  71. package/dist/s-datetime-picker/index.js +2 -2
  72. package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
  73. package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
  74. package/dist/s-dialog/index.js +2 -2
  75. package/dist/s-dialog/s-dialog.d.ts +3 -16
  76. package/dist/s-dialog/s-dialog.js +32 -23
  77. package/dist/s-dialog-confirm/index.js +3 -3
  78. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
  79. package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
  80. package/dist/s-dialog-message/index.js +4 -4
  81. package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
  82. package/dist/s-dialog-message/s-dialog-message.js +45 -38
  83. package/dist/s-empty/index.js +2 -2
  84. package/dist/s-empty/s-empty.d.ts +5 -20
  85. package/dist/s-empty/s-empty.js +14 -4
  86. package/dist/s-error/index.js +2 -2
  87. package/dist/s-error/s-error.d.ts +5 -20
  88. package/dist/s-error/s-error.js +16 -6
  89. package/dist/s-error-layout/index.js +2 -2
  90. package/dist/s-error-layout/s-error-layout.d.ts +6 -1
  91. package/dist/s-error-layout/s-error-layout.js +60 -51
  92. package/dist/s-file-dropzone/index.js +2 -2
  93. package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
  94. package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
  95. package/dist/s-file-icon/index.js +2 -2
  96. package/dist/s-file-icon/s-file-icon.d.ts +5 -25
  97. package/dist/s-file-icon/s-file-icon.js +14 -8
  98. package/dist/s-flex-box/index.js +2 -2
  99. package/dist/s-flex-box/s-flex-box.d.ts +10 -1
  100. package/dist/s-flex-box/s-flex-box.js +14 -4
  101. package/dist/s-form/index.js +2 -2
  102. package/dist/s-form/s-form.d.ts +5 -14
  103. package/dist/s-form/s-form.js +19 -9
  104. package/dist/s-gallery/index.js +33 -3
  105. package/dist/s-gallery/s-gallery.d.ts +3 -36
  106. package/dist/s-gallery/s-gallery.js +108 -78
  107. package/dist/s-glow-button/s-glow-button.d.ts +6 -42
  108. package/dist/s-glow-button/s-glow-button.js +29 -47
  109. package/dist/s-gradient-icon/index.d.ts +1 -1
  110. package/dist/s-gradient-icon/index.js +1 -1
  111. package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
  112. package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
  113. package/dist/s-i18n-provider/index.js +1 -1
  114. package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
  115. package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
  116. package/dist/s-icon-button/index.js +2 -2
  117. package/dist/s-icon-button/s-icon-button.d.ts +6 -19
  118. package/dist/s-icon-button/s-icon-button.js +14 -4
  119. package/dist/s-image-comparison/s-image-comparison.js +50 -45
  120. package/dist/s-image-modal/index.js +3 -3
  121. package/dist/s-image-modal/s-image-modal.d.ts +4 -20
  122. package/dist/s-image-modal/s-image-modal.js +150 -135
  123. package/dist/s-item-not-found/index.js +2 -2
  124. package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
  125. package/dist/s-item-not-found/s-item-not-found.js +21 -10
  126. package/dist/s-label/index.js +2 -2
  127. package/dist/s-label/s-label.d.ts +9 -25
  128. package/dist/s-label/s-label.js +19 -9
  129. package/dist/s-language-switcher/index.js +3 -3
  130. package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
  131. package/dist/s-language-switcher/s-language-switcher.js +137 -115
  132. package/dist/s-lazy-image/index.js +10 -2
  133. package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
  134. package/dist/s-lazy-image/s-lazy-image.js +53 -58
  135. package/dist/s-localization-provider/index.js +2 -2
  136. package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
  137. package/dist/s-localization-provider/s-localization-provider.js +157 -149
  138. package/dist/s-moving-border/index.js +2 -2
  139. package/dist/s-moving-border/s-moving-border.d.ts +3 -33
  140. package/dist/s-moving-border/s-moving-border.js +65 -55
  141. package/dist/s-multi-select/index.js +2 -2
  142. package/dist/s-multi-select/s-multi-select.d.ts +5 -15
  143. package/dist/s-multi-select/s-multi-select.js +54 -45
  144. package/dist/s-no-ssr/index.js +2 -2
  145. package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
  146. package/dist/s-no-ssr/s-no-ssr.js +21 -11
  147. package/dist/s-overlay-scrollbar/index.js +2 -2
  148. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
  149. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
  150. package/dist/s-pagination/index.js +2 -2
  151. package/dist/s-pagination/s-pagination.d.ts +5 -23
  152. package/dist/s-pagination/s-pagination.js +17 -11
  153. package/dist/s-pixel-reveal/index.js +2 -2
  154. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +15 -1
  155. package/dist/s-pixel-reveal/s-pixel-reveal.js +83 -78
  156. package/dist/s-radial-pulse-animate/index.js +2 -2
  157. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
  158. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
  159. package/dist/s-rating/index.js +2 -2
  160. package/dist/s-rating/s-rating.d.ts +7 -1
  161. package/dist/s-rating/s-rating.js +15 -5
  162. package/dist/s-review/index.js +2 -2
  163. package/dist/s-review/s-review.d.ts +25 -1
  164. package/dist/s-review/s-review.js +104 -97
  165. package/dist/s-scroll-reveal/index.js +2 -2
  166. package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
  167. package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
  168. package/dist/s-scroll-to-top/index.js +2 -2
  169. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
  170. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
  171. package/dist/s-scroll-velocity/index.d.ts +6 -0
  172. package/dist/s-scroll-velocity/index.js +8 -0
  173. package/dist/s-scroll-velocity/package.json +5 -0
  174. package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +24 -0
  175. package/dist/s-scroll-velocity/s-scroll-velocity.js +22 -0
  176. package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +20 -0
  177. package/dist/s-scroll-velocity/scroll-velocity-container.js +40 -0
  178. package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +27 -0
  179. package/dist/s-scroll-velocity/scroll-velocity-row.js +131 -0
  180. package/dist/s-select/index.js +2 -2
  181. package/dist/s-select/s-select.d.ts +3 -22
  182. package/dist/s-select/s-select.js +76 -72
  183. package/dist/s-select-list/index.js +2 -2
  184. package/dist/s-select-list/s-select-list.d.ts +16 -19
  185. package/dist/s-select-list/s-select-list.js +33 -28
  186. package/dist/s-skeleton/index.js +2 -2
  187. package/dist/s-skeleton/s-skeleton.d.ts +6 -22
  188. package/dist/s-skeleton/s-skeleton.js +28 -18
  189. package/dist/s-snackbar-message/index.js +4 -4
  190. package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
  191. package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
  192. package/dist/s-spotlight-cursor/index.js +2 -2
  193. package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
  194. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
  195. package/dist/s-stripe/index.d.ts +4 -1
  196. package/dist/s-stripe/index.js +7 -4
  197. package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
  198. package/dist/s-stripe/s-stripe-cvc.js +15 -0
  199. package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
  200. package/dist/s-stripe/s-stripe-expiry.js +15 -0
  201. package/dist/s-stripe/s-stripe-number.d.ts +8 -0
  202. package/dist/s-stripe/s-stripe-number.js +15 -0
  203. package/dist/s-stripe/s-stripe.d.ts +6 -85
  204. package/dist/s-stripe/s-stripe.js +24 -27
  205. package/dist/s-stripe/stripe-input.js +22 -18
  206. package/dist/s-tabs/index.js +6 -6
  207. package/dist/s-tabs/s-tab-panel.d.ts +11 -1
  208. package/dist/s-tabs/s-tab-panel.js +25 -16
  209. package/dist/s-tabs/s-tab.js +9 -5
  210. package/dist/s-tabs/s-tabs.d.ts +24 -3
  211. package/dist/s-tabs/s-tabs.js +34 -25
  212. package/dist/s-text-editor/index.js +3 -3
  213. package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
  214. package/dist/s-text-editor/s-text-editor.d.ts +13 -11
  215. package/dist/s-text-editor/s-text-editor.js +44 -30
  216. package/dist/s-text-field/index.js +2 -2
  217. package/dist/s-text-field/s-text-field.d.ts +6 -15
  218. package/dist/s-text-field/s-text-field.js +38 -28
  219. package/dist/s-text-shimmer/index.js +2 -2
  220. package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
  221. package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
  222. package/dist/s-text-truncation/index.js +2 -2
  223. package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
  224. package/dist/s-text-truncation/s-text-truncation.js +34 -20
  225. package/dist/s-theme-demo/s-theme-demo.js +238 -223
  226. package/dist/s-theme-provider/index.js +1 -1
  227. package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
  228. package/dist/s-theme-provider/s-theme-provider.js +44 -34
  229. package/dist/s-theme-switch/s-theme-switch.js +23 -19
  230. package/dist/s-tip/index.js +2 -2
  231. package/dist/s-tip/s-tip.d.ts +5 -22
  232. package/dist/s-tip/s-tip.js +22 -12
  233. package/dist/s-two-pane-layout/index.js +10 -2
  234. package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
  235. package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
  236. package/dist/s-typewriter-text/index.js +2 -2
  237. package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
  238. package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
  239. package/dist/s-zoom-image/index.js +10 -2
  240. package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
  241. package/dist/s-zoom-image/s-zoom-image.js +62 -52
  242. package/dist/theme/components/alert.d.ts +1436 -1436
  243. package/dist/theme/components/button.d.ts +2150 -2150
  244. package/dist/theme/components/chip.d.ts +2 -2
  245. package/dist/theme/customizations/data-display.js +1 -1
  246. package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
  247. package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
  248. package/package.json +23 -6
@@ -1,35 +1,37 @@
1
- import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
- import p, { useEffect as oe, useState as W, useMemo as G, useCallback as v } from "react";
3
- import { c as L } from "../createSvgIcon-DxwgGAVe.js";
4
- import { C as se } from "../Close-BRlEKA2Q.js";
5
- import { D as le } from "../Download-UsLvGg3y.js";
6
- import { TextField as J, Typography as te, Box as t, Slider as ne, alpha as z, Divider as ae, Tooltip as B, IconButton as P, Dialog as ce, DialogTitle as ie, DialogContent as de } from "@mui/material";
7
- import { createPortal as xe } from "react-dom";
8
- import he from "../s-select/s-select.js";
9
- const me = L(/* @__PURE__ */ e.jsx("path", {
1
+ import { j as o } from "../jsx-runtime-OVHDjVDe.js";
2
+ import b, { useEffect as le, useState as N, useMemo as J, useCallback as w } from "react";
3
+ import { c as P } from "../createSvgIcon-DxwgGAVe.js";
4
+ import { C as ae } from "../Close-BRlEKA2Q.js";
5
+ import { D as re } from "../Download-UsLvGg3y.js";
6
+ import { TextField as Q, Typography as se, Box as r, Slider as ie, alpha as R, Checkbox as de, Divider as ue, Tooltip as _, IconButton as S, Dialog as ce, DialogTitle as fe, DialogContent as pe } from "@mui/material";
7
+ import { createPortal as me } from "react-dom";
8
+ import { SSelect as he } from "../s-select/s-select.js";
9
+ const xe = P(/* @__PURE__ */ o.jsx("path", {
10
10
  d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"
11
- }), "AddPhotoAlternate"), fe = L(/* @__PURE__ */ e.jsx("path", {
11
+ }), "AddPhotoAlternate"), ye = P(/* @__PURE__ */ o.jsx("path", {
12
12
  d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"
13
- }), "Autorenew"), ue = L(/* @__PURE__ */ e.jsx("path", {
13
+ }), "Autorenew"), ge = P(/* @__PURE__ */ o.jsx("path", {
14
14
  d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
15
- }), "InfoOutlined"), ye = L(/* @__PURE__ */ e.jsx("path", {
15
+ }), "InfoOutlined"), be = P(/* @__PURE__ */ o.jsx("path", {
16
16
  d: "M8 5v14l11-7z"
17
- }), "PlayArrow"), je = p.memo(({ input: r, value: n, onChange: h, onFocus: l, onBlur: f, disabled: i }) => /* @__PURE__ */ e.jsx(
18
- J,
17
+ }), "PlayArrow");
18
+ var W = /* @__PURE__ */ ((e) => (e.TEXTAREA = "textarea", e.SLIDER = "slider", e.IMAGE = "image", e.NUMBER = "number", e.SELECT = "select", e.CHECKBOX = "checkbox", e))(W || {});
19
+ const ve = b.memo(({ input: e, value: a, onChange: c, onFocus: l, onBlur: f, disabled: d }) => /* @__PURE__ */ o.jsx(
20
+ Q,
19
21
  {
20
- value: n,
21
- onChange: (d) => h(d.target.value),
22
+ value: a,
23
+ onChange: (u) => c(u.target.value),
22
24
  onFocus: l,
23
25
  onBlur: f,
24
- placeholder: r.placeholder || r.label,
25
- disabled: i,
26
+ placeholder: e.placeholder || e.label,
27
+ disabled: d,
26
28
  multiline: !0,
27
- minRows: r.minRows ?? 2,
28
- maxRows: r.maxRows ?? 5,
29
+ minRows: e.minRows ?? 2,
30
+ maxRows: e.maxRows ?? 5,
29
31
  fullWidth: !0
30
32
  }
31
- )), _ = p.memo((r) => /* @__PURE__ */ e.jsx(
32
- te,
33
+ )), F = b.memo((e) => /* @__PURE__ */ o.jsx(
34
+ se,
33
35
  {
34
36
  variant: "caption",
35
37
  sx: {
@@ -40,10 +42,10 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
40
42
  width: "100% !important",
41
43
  textAlign: "center"
42
44
  },
43
- children: r.label
45
+ children: e.label
44
46
  }
45
- )), ge = p.memo(({ input: r, value: n, onChange: h, isExpanded: l, onFocus: f, onBlur: i, disabled: d }) => /* @__PURE__ */ e.jsxs(
46
- t,
47
+ )), je = b.memo(({ input: e, value: a, onChange: c, isExpanded: l, onFocus: f, onBlur: d, disabled: u }) => /* @__PURE__ */ o.jsxs(
48
+ r,
47
49
  {
48
50
  sx: {
49
51
  width: l ? 120 : 60,
@@ -52,22 +54,22 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
52
54
  flexDirection: "column"
53
55
  },
54
56
  children: [
55
- /* @__PURE__ */ e.jsx(_, { label: r.label }),
56
- /* @__PURE__ */ e.jsx(
57
- J,
57
+ /* @__PURE__ */ o.jsx(F, { label: e.label }),
58
+ /* @__PURE__ */ o.jsx(
59
+ Q,
58
60
  {
59
61
  type: "number",
60
- value: n ?? r.defaultValue ?? 0,
61
- onChange: (u) => h(Number(u.target.value)),
62
+ value: a ?? e.defaultValue ?? 0,
63
+ onChange: (h) => c(Number(h.target.value)),
62
64
  onFocus: f,
63
- onBlur: i,
64
- disabled: d,
65
+ onBlur: d,
66
+ disabled: u,
65
67
  size: "small",
66
68
  slotProps: {
67
69
  htmlInput: {
68
- min: r.min,
69
- max: r.max,
70
- step: r.step
70
+ min: e.min,
71
+ max: e.max,
72
+ step: e.step
71
73
  }
72
74
  },
73
75
  sx: {
@@ -79,8 +81,8 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
79
81
  )
80
82
  ]
81
83
  }
82
- )), pe = p.memo(({ input: r, value: n, onChange: h, isExpanded: l, onFocus: f, onBlur: i, disabled: d }) => /* @__PURE__ */ e.jsxs(
83
- t,
84
+ )), we = b.memo(({ input: e, value: a, onChange: c, isExpanded: l, onFocus: f, onBlur: d, disabled: u }) => /* @__PURE__ */ o.jsxs(
85
+ r,
84
86
  {
85
87
  sx: {
86
88
  width: l ? 180 : 80,
@@ -89,28 +91,28 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
89
91
  flexDirection: "column"
90
92
  },
91
93
  children: [
92
- /* @__PURE__ */ e.jsx(_, { label: r.label }),
93
- /* @__PURE__ */ e.jsx(
94
+ /* @__PURE__ */ o.jsx(F, { label: e.label }),
95
+ /* @__PURE__ */ o.jsx(
94
96
  he,
95
97
  {
96
- value: n ?? r.defaultValue ?? "",
97
- onChange: (u) => h(u.target.value),
98
+ value: a ?? e.defaultValue ?? "",
99
+ onChange: (h) => c(h.target.value),
98
100
  onFocus: f,
99
- onBlur: i,
100
- disabled: d,
101
- placeholder: r.placeholder,
102
- options: r.options || [],
103
- optionLabel: r.optionLabel,
104
- optionValue: r.optionValue,
105
- searchable: r.searchable,
106
- searchPlaceholder: r.searchPlaceholder,
101
+ onBlur: d,
102
+ disabled: u,
103
+ placeholder: e.placeholder,
104
+ options: e.options || [],
105
+ optionLabel: e.optionLabel,
106
+ optionValue: e.optionValue,
107
+ searchable: e.searchable,
108
+ searchPlaceholder: e.searchPlaceholder,
107
109
  size: "small"
108
110
  }
109
111
  )
110
112
  ]
111
113
  }
112
- )), Ie = p.memo(({ input: r, value: n, onChange: h, isExpanded: l, onFocus: f, onBlur: i, disabled: d }) => /* @__PURE__ */ e.jsxs(
113
- t,
114
+ )), Ie = b.memo(({ input: e, value: a, onChange: c, isExpanded: l, onFocus: f, onBlur: d, disabled: u }) => /* @__PURE__ */ o.jsxs(
115
+ r,
114
116
  {
115
117
  sx: {
116
118
  width: l ? 160 : 60,
@@ -119,25 +121,25 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
119
121
  flexDirection: "column"
120
122
  },
121
123
  children: [
122
- /* @__PURE__ */ e.jsx(_, { label: r.label }),
123
- /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", height: 36 }, children: [
124
- l && /* @__PURE__ */ e.jsx(
125
- ne,
124
+ /* @__PURE__ */ o.jsx(F, { label: e.label }),
125
+ /* @__PURE__ */ o.jsxs(r, { sx: { display: "flex", alignItems: "center", height: 36 }, children: [
126
+ l && /* @__PURE__ */ o.jsx(
127
+ ie,
126
128
  {
127
- value: n ?? r.defaultValue ?? r.min ?? 0,
128
- onChange: (u, k) => h(k),
129
+ value: a ?? e.defaultValue ?? e.min ?? 0,
130
+ onChange: (h, I) => c(I),
129
131
  onMouseDown: f,
130
- onMouseUp: i,
131
- disabled: d,
132
- min: r.min ?? 0,
133
- max: r.max ?? 100,
134
- step: r.step ?? 1,
132
+ onMouseUp: d,
133
+ disabled: u,
134
+ min: e.min ?? 0,
135
+ max: e.max ?? 100,
136
+ step: e.step ?? 1,
135
137
  size: "small",
136
138
  sx: { flex: 1 }
137
139
  }
138
140
  ),
139
- /* @__PURE__ */ e.jsx(
140
- t,
141
+ /* @__PURE__ */ o.jsx(
142
+ r,
141
143
  {
142
144
  sx: {
143
145
  minWidth: 60,
@@ -146,67 +148,67 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
146
148
  fontSize: "0.875rem",
147
149
  width: l ? "auto" : "100%"
148
150
  },
149
- children: n ?? r.defaultValue ?? r.min ?? 0
151
+ children: a ?? e.defaultValue ?? e.min ?? 0
150
152
  }
151
153
  )
152
154
  ] })
153
155
  ]
154
156
  }
155
- )), we = p.memo(({ input: r, value: n, onChange: h, disabled: l }) => {
156
- const f = p.useRef(null), [i, d] = p.useState([]), [u, k] = p.useState(null), w = r.multiple ?? !1, b = r.maxImages ?? 5;
157
- oe(() => {
157
+ )), ke = b.memo(({ input: e, value: a, onChange: c, disabled: l }) => {
158
+ const f = b.useRef(null), [d, u] = b.useState([]), [h, I] = b.useState(null), j = e.multiple ?? !1, k = e.maxImages ?? 5;
159
+ le(() => {
158
160
  let m = [];
159
- return d(((a) => {
160
- if (!a) return [];
161
- const I = Array.isArray(a) ? a : [a], c = [];
162
- return I.forEach((C) => {
163
- if (C instanceof File) {
164
- const M = URL.createObjectURL(C);
165
- c.push(M), m.push(M);
166
- } else typeof C == "string" && c.push(C);
167
- }), c;
168
- })(n)), () => {
169
- m.forEach((a) => URL.revokeObjectURL(a));
161
+ return u(((s) => {
162
+ if (!s) return [];
163
+ const v = Array.isArray(s) ? s : [s], i = [];
164
+ return v.forEach((V) => {
165
+ if (V instanceof File) {
166
+ const B = URL.createObjectURL(V);
167
+ i.push(B), m.push(B);
168
+ } else typeof V == "string" && i.push(V);
169
+ }), i;
170
+ })(a)), () => {
171
+ m.forEach((s) => URL.revokeObjectURL(s));
170
172
  };
171
- }, [n]);
172
- const y = (m) => {
173
- const x = m.target.files;
174
- if (!(!x || x.length === 0)) {
175
- if (w) {
176
- const a = Array.isArray(n) ? n : n ? [n] : [], I = Array.from(x).slice(0, b - a.length), c = [...a, ...I];
177
- h(c);
173
+ }, [a]);
174
+ const x = (m) => {
175
+ const p = m.target.files;
176
+ if (!(!p || p.length === 0)) {
177
+ if (j) {
178
+ const s = Array.isArray(a) ? a : a instanceof File || typeof a == "string" ? [a] : [], v = Array.from(p).slice(0, k - s.length), i = [...s, ...v];
179
+ c(i);
178
180
  } else
179
- h(x[0]);
181
+ c(p[0]);
180
182
  m.target.value = "";
181
183
  }
182
- }, V = (m, x) => {
183
- if (m.stopPropagation(), w && Array.isArray(n)) {
184
- const a = n.filter((I, c) => c !== x);
185
- h(a.length > 0 ? a : null);
184
+ }, M = (m, p) => {
185
+ if (m.stopPropagation(), j && Array.isArray(a)) {
186
+ const s = a.filter((v, i) => i !== p);
187
+ c(s.length > 0 ? s : null);
186
188
  } else
187
- h(null);
188
- }, O = () => {
189
+ c(null);
190
+ }, z = () => {
189
191
  var m;
190
- l || w && i.length >= b || (m = f.current) == null || m.click();
191
- }, T = w && i.length < b;
192
- return /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
193
- /* @__PURE__ */ e.jsx(
192
+ l || j && d.length >= k || (m = f.current) == null || m.click();
193
+ }, D = j && d.length < k;
194
+ return /* @__PURE__ */ o.jsxs(r, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
195
+ /* @__PURE__ */ o.jsx(
194
196
  "input",
195
197
  {
196
198
  ref: f,
197
199
  type: "file",
198
200
  accept: "image/*",
199
- multiple: w,
200
- onChange: y,
201
+ multiple: j,
202
+ onChange: x,
201
203
  disabled: l,
202
204
  style: { display: "none" }
203
205
  }
204
206
  ),
205
- i.map((m, x) => /* @__PURE__ */ e.jsxs(
206
- t,
207
+ d.map((m, p) => /* @__PURE__ */ o.jsxs(
208
+ r,
207
209
  {
208
- onMouseEnter: () => k(x),
209
- onMouseLeave: () => k(null),
210
+ onMouseEnter: () => I(p),
211
+ onMouseLeave: () => I(null),
210
212
  sx: {
211
213
  width: 50,
212
214
  height: 50,
@@ -225,12 +227,12 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
225
227
  }
226
228
  },
227
229
  children: [
228
- /* @__PURE__ */ e.jsx(
229
- t,
230
+ /* @__PURE__ */ o.jsx(
231
+ r,
230
232
  {
231
233
  component: "img",
232
234
  src: m,
233
- alt: `Preview ${x + 1}`,
235
+ alt: `Preview ${p + 1}`,
234
236
  sx: {
235
237
  width: "100%",
236
238
  height: "100%",
@@ -238,10 +240,10 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
238
240
  }
239
241
  }
240
242
  ),
241
- !l && u === x && /* @__PURE__ */ e.jsx(
242
- t,
243
+ !l && h === p && /* @__PURE__ */ o.jsx(
244
+ r,
243
245
  {
244
- onClick: (a) => V(a, x),
246
+ onClick: (s) => M(s, p),
245
247
  sx: {
246
248
  position: "absolute",
247
249
  top: 0,
@@ -251,15 +253,15 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
251
253
  display: "flex",
252
254
  alignItems: "center",
253
255
  justifyContent: "center",
254
- bgcolor: z("#000", 0.5),
256
+ bgcolor: R("#000", 0.5),
255
257
  cursor: "pointer",
256
258
  transition: "background-color 0.2s",
257
259
  "&:hover": {
258
- bgcolor: z("#000", 0.65)
260
+ bgcolor: R("#000", 0.65)
259
261
  }
260
262
  },
261
- children: /* @__PURE__ */ e.jsx(
262
- se,
263
+ children: /* @__PURE__ */ o.jsx(
264
+ ae,
263
265
  {
264
266
  sx: {
265
267
  fontSize: 16,
@@ -271,12 +273,12 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
271
273
  )
272
274
  ]
273
275
  },
274
- x
276
+ p
275
277
  )),
276
- (i.length === 0 || T) && /* @__PURE__ */ e.jsx(
277
- t,
278
+ (d.length === 0 || D) && /* @__PURE__ */ o.jsx(
279
+ r,
278
280
  {
279
- onClick: O,
281
+ onClick: z,
280
282
  sx: {
281
283
  width: 50,
282
284
  height: 50,
@@ -287,15 +289,15 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
287
289
  alignItems: "center",
288
290
  justifyContent: "center",
289
291
  cursor: l ? "not-allowed" : "pointer",
290
- bgcolor: z("#000", 0.02),
292
+ bgcolor: R("#000", 0.02),
291
293
  transition: "all 0.2s",
292
294
  "&:hover": l ? {} : {
293
295
  borderColor: "primary.main",
294
- bgcolor: z("#000", 0.04)
296
+ bgcolor: R("#000", 0.04)
295
297
  }
296
298
  },
297
- children: /* @__PURE__ */ e.jsx(
298
- me,
299
+ children: /* @__PURE__ */ o.jsx(
300
+ xe,
299
301
  {
300
302
  sx: {
301
303
  fontSize: 20,
@@ -306,81 +308,107 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
306
308
  }
307
309
  )
308
310
  ] });
309
- }), H = (r) => {
310
- switch (r.input.type) {
311
+ }), Ve = b.memo(({ input: e, value: a, onChange: c, onFocus: l, onBlur: f, disabled: d }) => /* @__PURE__ */ o.jsxs(
312
+ r,
313
+ {
314
+ sx: {
315
+ display: "flex",
316
+ flexDirection: "column",
317
+ alignItems: "center",
318
+ minWidth: 60
319
+ },
320
+ children: [
321
+ /* @__PURE__ */ o.jsx(F, { label: e.label }),
322
+ /* @__PURE__ */ o.jsx(
323
+ de,
324
+ {
325
+ checked: a ?? e.defaultValue ?? !1,
326
+ onChange: (u) => c(u.target.checked),
327
+ onFocus: l,
328
+ onBlur: f,
329
+ disabled: d,
330
+ size: "small"
331
+ }
332
+ )
333
+ ]
334
+ }
335
+ )), O = (e) => {
336
+ switch (e.input.type) {
311
337
  case "textarea":
312
- return /* @__PURE__ */ e.jsx(je, { ...r });
338
+ return /* @__PURE__ */ o.jsx(ve, { ...e });
313
339
  case "number":
314
- return /* @__PURE__ */ e.jsx(ge, { ...r });
340
+ return /* @__PURE__ */ o.jsx(je, { ...e });
315
341
  case "slider":
316
- return /* @__PURE__ */ e.jsx(Ie, { ...r });
342
+ return /* @__PURE__ */ o.jsx(Ie, { ...e });
317
343
  case "select":
318
- return /* @__PURE__ */ e.jsx(pe, { ...r });
344
+ return /* @__PURE__ */ o.jsx(we, { ...e });
319
345
  case "image":
320
- return /* @__PURE__ */ e.jsx(we, { input: r.input, value: r.value, onChange: r.onChange, disabled: r.disabled });
346
+ return /* @__PURE__ */ o.jsx(ke, { input: e.input, value: e.value, onChange: e.onChange, disabled: e.disabled });
347
+ case "checkbox":
348
+ return /* @__PURE__ */ o.jsx(Ve, { ...e });
321
349
  default:
322
350
  return null;
323
351
  }
324
- }, Me = ({
325
- inputs: r = [],
326
- onProcess: n,
327
- onReset: h,
352
+ }, U = ({
353
+ inputs: e = [],
354
+ onProcess: a,
355
+ onReset: c,
328
356
  onDownload: l,
329
357
  processing: f = !1,
330
- uploading: i = !1,
331
- inputValues: d = {},
332
- onInputChange: u,
333
- customActionButtons: k,
334
- hideProcessButton: w = !1,
335
- processButtonDisabled: b = !1,
336
- getInputDisabled: y,
337
- processTooltip: V = "Process",
338
- downloadTooltip: O = "Download",
339
- resetTooltip: T = "Reset",
358
+ uploading: d = !1,
359
+ inputValues: u = {},
360
+ onInputChange: h,
361
+ customActionButtons: I,
362
+ hideProcessButton: j = !1,
363
+ processButtonDisabled: k = !1,
364
+ getInputDisabled: x,
365
+ processTooltip: M = "Process",
366
+ downloadTooltip: z = "Download",
367
+ resetTooltip: D = "Reset",
340
368
  infoTooltip: m = "Information",
341
- infoTitle: x = "Tool Information",
342
- infoContent: a,
343
- position: I = "bottom",
344
- relative: c = !1
369
+ infoTitle: p = "Tool Information",
370
+ infoContent: s,
371
+ position: v = "bottom",
372
+ relative: i = !1
345
373
  }) => {
346
- const [C, M] = W(!1), [K, q] = W(!1), [Q, N] = W(!1), A = C || K, D = G(() => r.length === 0 ? !0 : r.every((o) => {
347
- if (!o.required) return !0;
348
- const s = d[o.key];
349
- return o.type === "textarea" ? s && typeof s == "string" && s.trim() !== "" : o.type === "number" || o.type === "slider" ? s != null : o.type === "select" ? s != null && s !== "" : !0;
350
- }), [r, d]), { imageInputs: E, textareaInputs: X, paramInputs: U } = G(() => r.reduce(
351
- (o, s) => (s.type === "image" ? o.imageInputs.push(s) : s.type === "textarea" ? o.textareaInputs.push(s) : o.paramInputs.push(s), o),
374
+ const [V, B] = N(!1), [Y, H] = N(!1), [Z, K] = N(!1), C = V || Y, X = J(() => e.length === 0 ? !0 : e.every((t) => {
375
+ if (!t.required) return !0;
376
+ const n = u[t.key];
377
+ return t.type === "textarea" ? n && typeof n == "string" && n.trim() !== "" : t.type === "number" || t.type === "slider" ? n != null : t.type === "select" ? n != null && n !== "" : !0;
378
+ }), [e, u]), { imageInputs: E, textareaInputs: G, paramInputs: L } = J(() => e.reduce(
379
+ (t, n) => (n.type === "image" ? t.imageInputs.push(n) : n.type === "textarea" ? t.textareaInputs.push(n) : t.paramInputs.push(n), t),
352
380
  {
353
381
  imageInputs: [],
354
382
  textareaInputs: [],
355
383
  paramInputs: []
356
384
  }
357
- ), [r]), Y = v(() => M(!0), []), Z = v(() => M(!1), []), R = v(() => q(!0), []), F = v(() => {
358
- setTimeout(() => q(!1), 200);
359
- }, []), S = v(
360
- (o, s, g) => {
361
- u == null || u(o, s, g);
385
+ ), [e]), ee = w(() => B(!0), []), oe = w(() => B(!1), []), T = w(() => H(!0), []), q = w(() => {
386
+ setTimeout(() => H(!1), 200);
387
+ }, []), A = w(
388
+ (t, n, g) => {
389
+ h == null || h(t, n, g);
362
390
  },
363
- [u]
364
- ), ee = v(() => N(!0), []), re = v(() => N(!1), []), $ = /* @__PURE__ */ e.jsxs(
365
- t,
391
+ [h]
392
+ ), te = w(() => K(!0), []), ne = w(() => K(!1), []), $ = /* @__PURE__ */ o.jsxs(
393
+ r,
366
394
  {
367
395
  sx: {
368
- position: c ? "relative" : "fixed",
369
- [I]: c ? "auto" : 20,
370
- left: c ? "auto" : "50%",
371
- transform: c ? "none" : "translateX(-50%)",
372
- zIndex: c ? "auto" : 1300,
373
- display: c ? "flex" : "block",
374
- justifyContent: c ? "center" : "initial",
375
- mt: c && I === "top" ? 2 : 0,
376
- mb: c && I === "bottom" ? 2 : 0
396
+ position: i ? "relative" : "fixed",
397
+ [v]: i ? "auto" : 20,
398
+ left: i ? "auto" : "50%",
399
+ transform: i ? "none" : "translateX(-50%)",
400
+ zIndex: i ? "auto" : 1300,
401
+ display: i ? "flex" : "block",
402
+ justifyContent: i ? "center" : "initial",
403
+ mt: i && v === "top" ? 2 : 0,
404
+ mb: i && v === "bottom" ? 2 : 0
377
405
  },
378
406
  children: [
379
- /* @__PURE__ */ e.jsxs(
380
- t,
407
+ /* @__PURE__ */ o.jsxs(
408
+ r,
381
409
  {
382
- onMouseEnter: Y,
383
- onMouseLeave: Z,
410
+ onMouseEnter: ee,
411
+ onMouseLeave: oe,
384
412
  sx: {
385
413
  display: "flex",
386
414
  flexDirection: "column",
@@ -388,35 +416,36 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
388
416
  p: 2,
389
417
  borderRadius: 2,
390
418
  border: 1,
391
- borderColor: "divider"
419
+ borderColor: "divider",
420
+ bgcolor: "background.default"
392
421
  },
393
422
  children: [
394
- X.length > 0 && /* @__PURE__ */ e.jsx(t, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: X.map((o) => {
395
- const s = d[o.key], g = (y == null ? void 0 : y(o.key)) ?? !1;
396
- return o.renderInput ? /* @__PURE__ */ e.jsx(t, { children: o.renderInput({
397
- value: s,
398
- onChange: (j) => S(o.key, j),
399
- isExpanded: A,
400
- onFocus: R,
401
- onBlur: F,
423
+ G.length > 0 && /* @__PURE__ */ o.jsx(r, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: G.map((t) => {
424
+ const n = u[t.key], g = (x == null ? void 0 : x(t.key)) ?? !1;
425
+ return t.renderInput ? /* @__PURE__ */ o.jsx(r, { children: t.renderInput({
426
+ value: n,
427
+ onChange: (y) => A(t.key, y),
428
+ isExpanded: C,
429
+ onFocus: T,
430
+ onBlur: q,
402
431
  disabled: g
403
- }) }, o.key) : /* @__PURE__ */ e.jsx(
404
- H,
432
+ }) }, t.key) : /* @__PURE__ */ o.jsx(
433
+ O,
405
434
  {
406
- input: o,
407
- value: s,
408
- onChange: (j) => S(o.key, j),
409
- isExpanded: A,
410
- onFocus: R,
411
- onBlur: F,
435
+ input: t,
436
+ value: n,
437
+ onChange: (y) => A(t.key, y),
438
+ isExpanded: C,
439
+ onFocus: T,
440
+ onBlur: q,
412
441
  disabled: g
413
442
  },
414
- o.key
443
+ t.key
415
444
  );
416
445
  }) }),
417
- /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
418
- /* @__PURE__ */ e.jsx(
419
- t,
446
+ /* @__PURE__ */ o.jsxs(r, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
447
+ /* @__PURE__ */ o.jsx(
448
+ r,
420
449
  {
421
450
  sx: {
422
451
  display: "flex",
@@ -424,72 +453,72 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
424
453
  gap: 2,
425
454
  flex: 1
426
455
  },
427
- children: (E.length > 0 || U.length > 0) && /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "flex-end", gap: 1.5 }, children: [
428
- E.map((o) => {
429
- const s = d[o.key], g = (y == null ? void 0 : y(o.key)) ?? !1;
430
- return o.renderInput ? /* @__PURE__ */ e.jsx(t, { children: o.renderInput({
431
- value: s,
432
- onChange: (j) => S(o.key, j),
433
- isExpanded: A,
434
- onFocus: R,
435
- onBlur: F,
456
+ children: (E.length > 0 || L.length > 0) && /* @__PURE__ */ o.jsxs(r, { sx: { display: "flex", alignItems: "flex-end", gap: 1.5 }, children: [
457
+ E.map((t) => {
458
+ const n = u[t.key], g = (x == null ? void 0 : x(t.key)) ?? !1;
459
+ return t.renderInput ? /* @__PURE__ */ o.jsx(r, { children: t.renderInput({
460
+ value: n,
461
+ onChange: (y) => A(t.key, y),
462
+ isExpanded: C,
463
+ onFocus: T,
464
+ onBlur: q,
436
465
  disabled: g
437
- }) }, o.key) : /* @__PURE__ */ e.jsx(
438
- H,
466
+ }) }, t.key) : /* @__PURE__ */ o.jsx(
467
+ O,
439
468
  {
440
- input: o,
441
- value: s,
442
- onChange: (j) => S(o.key, j),
443
- isExpanded: A,
444
- onFocus: R,
445
- onBlur: F,
469
+ input: t,
470
+ value: n,
471
+ onChange: (y) => A(t.key, y),
472
+ isExpanded: C,
473
+ onFocus: T,
474
+ onBlur: q,
446
475
  disabled: g
447
476
  },
448
- o.key
477
+ t.key
449
478
  );
450
479
  }),
451
- U.map((o) => {
452
- const s = d[o.key], g = (y == null ? void 0 : y(o.key)) ?? !1;
453
- return o.renderInput ? /* @__PURE__ */ e.jsx(t, { children: o.renderInput({
454
- value: s,
455
- onChange: (j) => S(o.key, j),
456
- isExpanded: A,
457
- onFocus: R,
458
- onBlur: F,
480
+ L.map((t) => {
481
+ const n = u[t.key], g = (x == null ? void 0 : x(t.key)) ?? !1;
482
+ return t.renderInput ? /* @__PURE__ */ o.jsx(r, { children: t.renderInput({
483
+ value: n,
484
+ onChange: (y) => A(t.key, y),
485
+ isExpanded: C,
486
+ onFocus: T,
487
+ onBlur: q,
459
488
  disabled: g
460
- }) }, o.key) : /* @__PURE__ */ e.jsx(
461
- H,
489
+ }) }, t.key) : /* @__PURE__ */ o.jsx(
490
+ O,
462
491
  {
463
- input: o,
464
- value: s,
465
- onChange: (j) => S(o.key, j),
466
- isExpanded: A,
467
- onFocus: R,
468
- onBlur: F,
492
+ input: t,
493
+ value: n,
494
+ onChange: (y) => A(t.key, y),
495
+ isExpanded: C,
496
+ onFocus: T,
497
+ onBlur: q,
469
498
  disabled: g
470
499
  },
471
- o.key
500
+ t.key
472
501
  );
473
502
  })
474
503
  ] })
475
504
  }
476
505
  ),
477
- (E.length > 0 || U.length > 0) && /* @__PURE__ */ e.jsx(ae, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5, flexShrink: 0 } }),
478
- /* @__PURE__ */ e.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: 0.75, ml: "auto" }, children: [
479
- k,
480
- a && /* @__PURE__ */ e.jsx(B, { title: m, children: /* @__PURE__ */ e.jsx(P, { onClick: ee, children: /* @__PURE__ */ e.jsx(ue, {}) }) }),
481
- /* @__PURE__ */ e.jsx(B, { title: O, children: /* @__PURE__ */ e.jsx(P, { onClick: l, children: /* @__PURE__ */ e.jsx(le, {}) }) }),
482
- /* @__PURE__ */ e.jsx(B, { title: T, children: /* @__PURE__ */ e.jsx(P, { onClick: h, children: /* @__PURE__ */ e.jsx(fe, {}) }) }),
483
- !w && /* @__PURE__ */ e.jsx(B, { title: V, children: /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
484
- P,
506
+ (E.length > 0 || L.length > 0) && /* @__PURE__ */ o.jsx(ue, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5, flexShrink: 0 } }),
507
+ /* @__PURE__ */ o.jsxs(r, { sx: { display: "flex", alignItems: "center", gap: 0.75, ml: "auto" }, children: [
508
+ I,
509
+ s && /* @__PURE__ */ o.jsx(_, { title: m, children: /* @__PURE__ */ o.jsx(S, { onClick: te, children: /* @__PURE__ */ o.jsx(ge, {}) }) }),
510
+ /* @__PURE__ */ o.jsx(_, { title: z, children: /* @__PURE__ */ o.jsx(S, { onClick: l, children: /* @__PURE__ */ o.jsx(re, {}) }) }),
511
+ /* @__PURE__ */ o.jsx(_, { title: D, children: /* @__PURE__ */ o.jsx(S, { onClick: c, children: /* @__PURE__ */ o.jsx(ye, {}) }) }),
512
+ !j && /* @__PURE__ */ o.jsx(_, { title: M, children: /* @__PURE__ */ o.jsx("span", { children: /* @__PURE__ */ o.jsx(
513
+ S,
485
514
  {
486
- onClick: n,
487
- disabled: b || !D || i || f,
515
+ onClick: a,
516
+ disabled: k || !X || d || f,
488
517
  size: "large",
489
- children: /* @__PURE__ */ e.jsx(
490
- ye,
518
+ children: /* @__PURE__ */ o.jsx(
519
+ be,
491
520
  {
492
- color: b || !D || i || f ? "disabled" : "primary"
521
+ color: k || !X || d || f ? "disabled" : "primary"
493
522
  }
494
523
  )
495
524
  }
@@ -499,15 +528,34 @@ const me = L(/* @__PURE__ */ e.jsx("path", {
499
528
  ]
500
529
  }
501
530
  ),
502
- a && /* @__PURE__ */ e.jsxs(ce, { open: Q, onClose: re, maxWidth: "sm", fullWidth: !0, children: [
503
- /* @__PURE__ */ e.jsx(ie, { children: x }),
504
- /* @__PURE__ */ e.jsx(de, { children: a })
531
+ s && /* @__PURE__ */ o.jsxs(ce, { open: Z, onClose: ne, maxWidth: "sm", fullWidth: !0, children: [
532
+ /* @__PURE__ */ o.jsx(fe, { children: p }),
533
+ /* @__PURE__ */ o.jsx(pe, { children: s })
505
534
  ] })
506
535
  ]
507
536
  }
508
537
  );
509
- return !c && typeof window < "u" ? xe($, document.body) : $;
538
+ return !i && typeof window < "u" ? me($, document.body) : $;
510
539
  };
540
+ U.displayName = "SAiToolBar";
541
+ try {
542
+ W.displayName = "SAiToolBarInputType", W.__docgenInfo = { description: "Supported input types for SAiToolBar", displayName: "SAiToolBarInputType", props: {} };
543
+ } catch {
544
+ }
545
+ try {
546
+ U.displayName = "SAiToolBar", U.__docgenInfo = { description: `A dynamic floating toolbar for AI tools with expandable inputs and action buttons.
547
+ Features smooth expand/collapse animations, multiple input types, built-in validation,
548
+ and portal rendering for proper z-index handling.`, displayName: "SAiToolBar", props: { inputs: { defaultValue: { value: "[]" }, description: "Configuration for input fields", name: "inputs", required: !1, type: { name: "SAiToolBarInput[]" } }, onProcess: { defaultValue: null, description: "Callback when process button is clicked", name: "onProcess", required: !1, type: { name: "(() => void)" } }, onReset: { defaultValue: null, description: "Callback when reset button is clicked", name: "onReset", required: !1, type: { name: "(() => void)" } }, onDownload: { defaultValue: null, description: "Callback when download button is clicked", name: "onDownload", required: !1, type: { name: "(() => void)" } }, processing: { defaultValue: { value: "false" }, description: "Whether the toolbar is in processing state", name: "processing", required: !1, type: { name: "boolean" } }, uploading: { defaultValue: { value: "false" }, description: "Whether the toolbar is in uploading state", name: "uploading", required: !1, type: { name: "boolean" } }, inputValues: { defaultValue: { value: "{}" }, description: "Input values controlled externally", name: "inputValues", required: !1, type: { name: "Record<string, SAiToolBarValue>" } }, onInputChange: { defaultValue: null, description: "Callback when input values change", name: "onInputChange", required: !1, type: { name: "((key: string, value: SAiToolBarValue, file?: File) => void)" } }, customActionButtons: { defaultValue: null, description: "Custom action buttons between inputs and standard actions", name: "customActionButtons", required: !1, type: { name: "ReactNode" } }, hideProcessButton: { defaultValue: { value: "false" }, description: "Hide the main process button", name: "hideProcessButton", required: !1, type: { name: "boolean" } }, processButtonDisabled: { defaultValue: { value: "false" }, description: "Override to disable the process button", name: "processButtonDisabled", required: !1, type: { name: "boolean" } }, getInputDisabled: { defaultValue: null, description: "Function to check if an input should be disabled", name: "getInputDisabled", required: !1, type: { name: "((inputKey: string) => boolean)" } }, processTooltip: { defaultValue: { value: "Process" }, description: "Tooltip for process button", name: "processTooltip", required: !1, type: { name: "string" } }, downloadTooltip: { defaultValue: { value: "Download" }, description: "Tooltip for download button", name: "downloadTooltip", required: !1, type: { name: "string" } }, resetTooltip: { defaultValue: { value: "Reset" }, description: "Tooltip for reset button", name: "resetTooltip", required: !1, type: { name: "string" } }, infoTooltip: { defaultValue: { value: "Information" }, description: "Tooltip for info button", name: "infoTooltip", required: !1, type: { name: "string" } }, infoTitle: { defaultValue: { value: "Tool Information" }, description: "Info dialog title", name: "infoTitle", required: !1, type: { name: "string" } }, infoContent: { defaultValue: null, description: "Info dialog content", name: "infoContent", required: !1, type: { name: "ReactNode" } }, position: { defaultValue: { value: "bottom" }, description: "Position of the toolbar", name: "position", required: !1, type: { name: "enum", value: [{ value: '"bottom"' }, { value: '"top"' }] } }, relative: { defaultValue: { value: "false" }, description: "Use relative positioning within container instead of fixed viewport positioning", name: "relative", required: !1, type: { name: "boolean" } } } };
549
+ } catch {
550
+ }
551
+ try {
552
+ saitoolbar.displayName = "saitoolbar", saitoolbar.__docgenInfo = { description: `A dynamic floating toolbar for AI tools with expandable inputs and action buttons.
553
+ Features smooth expand/collapse animations, multiple input types, built-in validation,
554
+ and portal rendering for proper z-index handling.`, displayName: "saitoolbar", props: { inputs: { defaultValue: { value: "[]" }, description: "Configuration for input fields", name: "inputs", required: !1, type: { name: "SAiToolBarInput[]" } }, onProcess: { defaultValue: null, description: "Callback when process button is clicked", name: "onProcess", required: !1, type: { name: "(() => void)" } }, onReset: { defaultValue: null, description: "Callback when reset button is clicked", name: "onReset", required: !1, type: { name: "(() => void)" } }, onDownload: { defaultValue: null, description: "Callback when download button is clicked", name: "onDownload", required: !1, type: { name: "(() => void)" } }, processing: { defaultValue: { value: "false" }, description: "Whether the toolbar is in processing state", name: "processing", required: !1, type: { name: "boolean" } }, uploading: { defaultValue: { value: "false" }, description: "Whether the toolbar is in uploading state", name: "uploading", required: !1, type: { name: "boolean" } }, inputValues: { defaultValue: { value: "{}" }, description: "Input values controlled externally", name: "inputValues", required: !1, type: { name: "Record<string, SAiToolBarValue>" } }, onInputChange: { defaultValue: null, description: "Callback when input values change", name: "onInputChange", required: !1, type: { name: "((key: string, value: SAiToolBarValue, file?: File) => void)" } }, customActionButtons: { defaultValue: null, description: "Custom action buttons between inputs and standard actions", name: "customActionButtons", required: !1, type: { name: "ReactNode" } }, hideProcessButton: { defaultValue: { value: "false" }, description: "Hide the main process button", name: "hideProcessButton", required: !1, type: { name: "boolean" } }, processButtonDisabled: { defaultValue: { value: "false" }, description: "Override to disable the process button", name: "processButtonDisabled", required: !1, type: { name: "boolean" } }, getInputDisabled: { defaultValue: null, description: "Function to check if an input should be disabled", name: "getInputDisabled", required: !1, type: { name: "((inputKey: string) => boolean)" } }, processTooltip: { defaultValue: { value: "Process" }, description: "Tooltip for process button", name: "processTooltip", required: !1, type: { name: "string" } }, downloadTooltip: { defaultValue: { value: "Download" }, description: "Tooltip for download button", name: "downloadTooltip", required: !1, type: { name: "string" } }, resetTooltip: { defaultValue: { value: "Reset" }, description: "Tooltip for reset button", name: "resetTooltip", required: !1, type: { name: "string" } }, infoTooltip: { defaultValue: { value: "Information" }, description: "Tooltip for info button", name: "infoTooltip", required: !1, type: { name: "string" } }, infoTitle: { defaultValue: { value: "Tool Information" }, description: "Info dialog title", name: "infoTitle", required: !1, type: { name: "string" } }, infoContent: { defaultValue: null, description: "Info dialog content", name: "infoContent", required: !1, type: { name: "ReactNode" } }, position: { defaultValue: { value: "bottom" }, description: "Position of the toolbar", name: "position", required: !1, type: { name: "enum", value: [{ value: '"bottom"' }, { value: '"top"' }] } }, relative: { defaultValue: { value: "false" }, description: "Use relative positioning within container instead of fixed viewport positioning", name: "relative", required: !1, type: { name: "boolean" } } } };
555
+ } catch {
556
+ }
511
557
  export {
512
- Me as default
558
+ U as SAiToolBar,
559
+ W as SAiToolBarInputType,
560
+ U as default
513
561
  };