@solostylist/ui-kit 1.0.217 → 1.0.218

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 (182) hide show
  1. package/dist/{ArrowUpward-Di0RvTdn.js → ArrowUpward-BbQSKheQ.js} +1 -1
  2. package/dist/{Box-BK8kyPwb.js → Box-BlmynALm.js} +14 -14
  3. package/dist/{ButtonBase-Pxs48joz.js → ButtonBase-Bo6ysVGS.js} +6 -6
  4. package/dist/{ChevronLeft-Cq8Rj_mj.js → ChevronLeft-rgSvkrT_.js} +1 -1
  5. package/dist/{ChevronRight-DgJMX1PW.js → ChevronRight-DHulYS1l.js} +1 -1
  6. package/dist/{Close-BrK64qcq.js → Close-oXeOGTZb.js} +1 -1
  7. package/dist/{Collapse-BlDm9KX-.js → Collapse-CnXmaDqT.js} +51 -50
  8. package/dist/{ContentCopy-C3hTb2aA.js → ContentCopy-Bh_TA5Eo.js} +1 -1
  9. package/dist/{Download-BxH0i9Ni.js → Download-DMm8oiCF.js} +1 -1
  10. package/dist/{ExpandMore-C7Hl31nD.js → ExpandMore-DsZNN1Eh.js} +1 -1
  11. package/dist/{Favorite-DNaf3wqS.js → Favorite-DIml4fHR.js} +1 -1
  12. package/dist/{inputLabelClasses-CC5i2Dsg.js → FormControl-DYkaP-oD.js} +109 -109
  13. package/dist/InfoOutlined-CqXSSVWh.js +6 -0
  14. package/dist/{LocalizationProvider-DtVmtZ15.js → LocalizationProvider-BdaUKqz3.js} +4 -4
  15. package/dist/{Menu-DklEkm6T.js → Menu-C-0KEauj.js} +108 -108
  16. package/dist/{MenuItem-B9utw6PO.js → MenuItem-DWivWkNb.js} +52 -54
  17. package/dist/{MenuList-BbO85Qmd.js → MenuList-5HOyYdgq.js} +108 -109
  18. package/dist/{List-CtVrgES0.js → Modal-C1VRVWBZ.js} +302 -302
  19. package/dist/{Paper-B_hHPO5k.js → Paper-BY4X6-u_.js} +24 -26
  20. package/dist/{Stack-D5D_RRtN.js → Stack-BQkLmLFp.js} +6 -6
  21. package/dist/{Typography-Dy5dAg2u.js → Typography-EsraKPZO.js} +6 -6
  22. package/dist/UnfoldMoreRounded-pz7NMMy3.js +6 -0
  23. package/dist/assets/s-overlay-scrollbar.css +2 -2
  24. package/dist/autocomplete-qLj7AqcP.js +43 -0
  25. package/dist/{avatar-C1jUiSkJ.js → avatar-BQf6phmU.js} +1 -1
  26. package/dist/{checkbox-ByoYYQb_.js → checkbox-DMsuLF8N.js} +26 -9
  27. package/dist/checkboxClasses-DSyvUOsN.js +18 -0
  28. package/dist/{chunk-efA98nb6.js → chunk-C_CI6nMA.js} +1 -1
  29. package/dist/{clsx-69XFQeWf.js → clsx-Bv8WXdlr.js} +1 -1
  30. package/dist/{createSvgIcon-BmN7SAhg.js → createSvgIcon-BdNZIlKS.js} +5 -5
  31. package/dist/{createTheme-YGsrOe_4.js → createTheme-Bnw5w28O.js} +179 -179
  32. package/dist/{defaultTheme-DCktV_zC.js → defaultTheme-Bi3OTfLN.js} +1 -1
  33. package/dist/formLabelClasses-Cv7W0Roi.js +18 -0
  34. package/dist/inputAdornmentClasses-VKwluNTs.js +19 -0
  35. package/dist/{memoTheme-BmiT8U43.js → memoTheme-QMocAblm.js} +6 -6
  36. package/dist/{mergeSlotProps-BX66hWLa.js → mergeSlotProps-DBBJwoun.js} +2 -2
  37. package/dist/{resolveProps-CP_X7XKa.js → resolveProps-DrnBChYC.js} +1 -1
  38. package/dist/s-accordion/index.js +1 -1
  39. package/dist/s-accordion/s-accordion.js +1 -1
  40. package/dist/{s-accordion-CeJZz1Ln.js → s-accordion-DH_7P3Il.js} +105 -105
  41. package/dist/s-autocomplete/s-autocomplete.d.ts +2 -0
  42. package/dist/s-autocomplete/s-autocomplete.js +12 -9
  43. package/dist/s-blur-text/s-blur-text.js +1 -1
  44. package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
  45. package/dist/s-carousel/index.js +1 -1
  46. package/dist/s-carousel/s-carousel.js +1 -1
  47. package/dist/{s-carousel-DyaNkTeX.js → s-carousel-DhUo-3W-.js} +1 -1
  48. package/dist/s-chat-input/index.js +1 -1
  49. package/dist/s-chat-input/s-chat-input.js +1 -1
  50. package/dist/{s-chat-input-B_qRssy8.js → s-chat-input-DlEMhm6X.js} +4 -4
  51. package/dist/s-chat-message/index.js +1 -1
  52. package/dist/s-chat-message/s-chat-message.js +1 -1
  53. package/dist/{s-chat-message-gzoc72Ti.js → s-chat-message-DeP8O6TO.js} +3 -3
  54. package/dist/s-checkbox/s-checkbox.js +21 -14
  55. package/dist/s-chips/index.js +1 -1
  56. package/dist/s-chips/s-chips.js +1 -1
  57. package/dist/{s-chips-D8H_w9Xa.js → s-chips-BuAEBW1F.js} +2 -2
  58. package/dist/s-code-block/index.js +1 -1
  59. package/dist/s-code-block/s-code-block.js +1 -1
  60. package/dist/{s-code-block-B1mdb-IQ.js → s-code-block-DTzppazr.js} +1 -1
  61. package/dist/s-comment-message/index.js +1 -1
  62. package/dist/s-comment-message/s-comment-message.js +1 -1
  63. package/dist/{s-comment-message-CsQej8Et.js → s-comment-message-C-7IZOqA.js} +3 -3
  64. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  65. package/dist/s-data-table/index.js +1 -1
  66. package/dist/s-data-table/s-data-table.js +1 -1
  67. package/dist/{s-data-table-DeFNG6GB.js → s-data-table-xIW-BAS9.js} +281 -294
  68. package/dist/s-date-picker/index.js +1 -1
  69. package/dist/s-date-picker/s-date-picker.js +1 -1
  70. package/dist/s-date-picker-CKSRNJ_A.js +634 -0
  71. package/dist/s-datetime-picker/index.js +1 -1
  72. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  73. package/dist/{s-datetime-picker-BcpyhYZf.js → s-datetime-picker-BlStwMie.js} +121 -120
  74. package/dist/s-dialog/s-dialog.js +1 -1
  75. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  76. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  77. package/dist/s-file-dropzone/index.js +1 -1
  78. package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
  79. package/dist/{s-file-dropzone-yel7KInt.js → s-file-dropzone-COPp1HiT.js} +4 -4
  80. package/dist/s-file-icon/s-file-icon.js +16 -19
  81. package/dist/s-flex-box/s-flex-box.js +1 -1
  82. package/dist/s-glow-button/s-glow-button.js +1 -1
  83. package/dist/s-image-comparison/s-image-comparison.js +3 -3
  84. package/dist/s-image-modal/s-image-modal.js +3 -3
  85. package/dist/s-label/index.js +1 -1
  86. package/dist/s-label/s-label.js +26 -2
  87. package/dist/s-language-switcher/index.js +1 -1
  88. package/dist/s-language-switcher/s-language-switcher.js +1 -1
  89. package/dist/{s-language-switcher-BI0ARsS8.js → s-language-switcher-Cg3Gh8_i.js} +11 -11
  90. package/dist/s-localization-provider/index.js +1 -1
  91. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  92. package/dist/{s-localization-provider-zUNjKqvJ.js → s-localization-provider-YCsec18c.js} +4 -4
  93. package/dist/s-nav-item/s-nav-item.js +2 -2
  94. package/dist/s-nav-item/s-nav-items.js +5 -5
  95. package/dist/s-pixel-reveal/s-pixel-reveal.js +1 -1
  96. package/dist/s-review/index.js +1 -1
  97. package/dist/s-review/s-review.js +1 -1
  98. package/dist/{s-review-BoTotzrP.js → s-review-D5_TicCf.js} +1 -1
  99. package/dist/s-scroll-to-top/s-scroll-to-top.js +4 -4
  100. package/dist/s-select/index.js +1 -1
  101. package/dist/s-select/s-select.js +1 -1
  102. package/dist/{s-select-BHnfqAGl.js → s-select-ClL8bygg.js} +1 -1
  103. package/dist/s-select-list/s-select-list.js +2 -2
  104. package/dist/s-stripe/s-stripe.js +1 -1
  105. package/dist/s-switch/s-switch.js +21 -13
  106. package/dist/s-text-editor/index.js +1 -1
  107. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  108. package/dist/s-text-editor/s-text-editor.js +2 -2
  109. package/dist/{s-text-editor-toolbar-ZxamcKpn.js → s-text-editor-toolbar-BnhPG9xv.js} +1271 -1288
  110. package/dist/s-text-field/index.js +1 -1
  111. package/dist/s-text-field/s-text-field.js +1 -1
  112. package/dist/{s-text-field-w4T9VXLw.js → s-text-field-qps0aDNS.js} +1 -1
  113. package/dist/s-text-shimmer/s-text-shimmer.js +1 -1
  114. package/dist/s-text-truncation/s-text-truncation.js +5 -7
  115. package/dist/s-theme-demo/index.js +1 -1
  116. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  117. package/dist/{s-theme-demo-C0BGeh2P.js → s-theme-demo-BHyjzAU0.js} +4 -4
  118. package/dist/s-theme-provider/s-theme-provider.d.ts +3 -1
  119. package/dist/s-theme-provider/s-theme-provider.js +15 -15
  120. package/dist/s-theme-switch/index.js +1 -1
  121. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  122. package/dist/{s-theme-switch-Cz5QBl69.js → s-theme-switch-D1FpcDj1.js} +1 -1
  123. package/dist/s-tip/index.js +1 -1
  124. package/dist/s-tip/s-tip.js +1 -1
  125. package/dist/{s-tip-CqLspVS4.js → s-tip-D6M91nev.js} +3 -3
  126. package/dist/s-tool-bar/index.js +1 -1
  127. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  128. package/dist/{s-tool-bar-RTPBIgcd.js → s-tool-bar-DOcT-lNr.js} +91 -90
  129. package/dist/s-two-pane-layout/s-two-pane-layout.js +2 -2
  130. package/dist/selectClasses-DvT1febA.js +22 -0
  131. package/dist/{styled-BRk8Ukg1.js → styled-BTDmdi4c.js} +2 -2
  132. package/dist/theme/components/accordion-summary.js +1 -1
  133. package/dist/theme/components/alert.js +1 -1
  134. package/dist/theme/components/autocomplete.d.ts +52 -5
  135. package/dist/theme/components/autocomplete.js +1 -18
  136. package/dist/theme/components/avatar.js +1 -1
  137. package/dist/theme/components/button.js +1 -1
  138. package/dist/theme/components/card.js +2 -2
  139. package/dist/theme/components/checkbox.d.ts +1 -0
  140. package/dist/theme/components/checkbox.js +1 -1
  141. package/dist/theme/components/chip.js +2 -2
  142. package/dist/theme/components/components.js +41 -39
  143. package/dist/theme/components/css-baseline.d.ts +9 -0
  144. package/dist/theme/components/css-baseline.js +7 -0
  145. package/dist/theme/components/form-label.d.ts +4 -1
  146. package/dist/theme/components/form-label.js +6 -4
  147. package/dist/theme/components/icon-button.js +5 -5
  148. package/dist/theme/components/input-adornment.d.ts +4 -1012
  149. package/dist/theme/components/input-adornment.js +2 -2
  150. package/dist/theme/components/linear-progress.js +1 -1
  151. package/dist/theme/components/link.js +2 -2
  152. package/dist/theme/components/list-item.js +1 -1
  153. package/dist/theme/components/outlined-input.d.ts +31 -34
  154. package/dist/theme/components/outlined-input.js +16 -19
  155. package/dist/theme/components/select.d.ts +20 -0
  156. package/dist/theme/components/select.js +21 -2
  157. package/dist/theme/components/step-icon.js +1 -1
  158. package/dist/theme/components/toggle-button-group.js +1 -1
  159. package/dist/theme/components/toggle-button.js +1 -1
  160. package/dist/theme/components/tooltip.js +1 -0
  161. package/dist/theme/theme-primitives.js +1 -1
  162. package/dist/{theme-primitives-DHiY0aFC.js → theme-primitives-OrQ-xFJR.js} +19 -19
  163. package/dist/{toggle-button-DIEv06gW.js → toggle-button-BgpxYWVw.js} +1 -1
  164. package/dist/{toggle-button-group-CERACXGm.js → toggle-button-group-l4hL1DLP.js} +2 -2
  165. package/dist/{useMobilePicker-6o6QRlWL.js → useMobilePicker-ujH2nH2-.js} +8060 -8085
  166. package/dist/{useSlot-CugRM0KJ.js → useSlot-Dkc1Mj31.js} +15 -15
  167. package/dist/{useThemeProps-DdB9M8DE.js → useThemeProps-D4jtjo2I.js} +2 -2
  168. package/dist/utils/dayjs.js +1 -1
  169. package/dist/{utils-DNv5CBQM.js → utils-CCnIUPad.js} +55 -55
  170. package/package.json +41 -41
  171. package/dist/s-date-picker-Fo7ezXTV.js +0 -633
  172. package/dist/s-label-B9mgEpfz.js +0 -31
  173. package/dist/s-multi-select/index.d.ts +0 -2
  174. package/dist/s-multi-select/index.js +0 -2
  175. package/dist/s-multi-select/s-multi-select.d.ts +0 -26
  176. package/dist/s-multi-select/s-multi-select.js +0 -2
  177. package/dist/s-multi-select-CVyeHDlc.js +0 -64
  178. package/dist/select-D7W-VU2F.js +0 -11
  179. package/dist/theme/components/tooltip.d.ts +0 -30
  180. /package/dist/{outlinedInputClasses-Di4lUV1O.js → outlinedInputClasses-Cz4pnn0X.js} +0 -0
  181. /package/dist/{typographyClasses-CyjIdezx.js → typographyClasses-CFf0OFiD.js} +0 -0
  182. /package/dist/{useFormControl-CUs308br.js → useFormControl-B4z6ONhx.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-text-field-w4T9VXLw.js";
1
+ import { t as e } from "../s-text-field-qps0aDNS.js";
2
2
  export { e as STextField, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-text-field-w4T9VXLw.js";
1
+ import { t as e } from "../s-text-field-qps0aDNS.js";
2
2
  export { e as STextField, e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createSvgIcon-BmN7SAhg.js";
1
+ import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
2
  import { SForm as t } from "./s-form/s-form.js";
3
3
  import { useState as n } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { a as e } from "../styled-engine-DOxAQ3qw.js";
2
- import { t } from "../styled-BRk8Ukg1.js";
2
+ import { t } from "../styled-BTDmdi4c.js";
3
3
  import { forwardRef as n, useMemo as r } from "react";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
5
  import { Typography as a } from "@mui/material";
@@ -23,15 +23,11 @@ var d = ({ text: d = "", variant: f = "expandable", lines: p = 3 }) => {
23
23
  }
24
24
  e.textContent = "", y(d.slice(0, n).trimEnd());
25
25
  }, [d, p]);
26
- t(() => {
26
+ return t(() => {
27
27
  S();
28
28
  let e = new ResizeObserver(S);
29
29
  return x.current && e.observe(x.current), () => e.disconnect();
30
- }, [S]);
31
- let C = () => {
32
- h(!m);
33
- };
34
- return f === "tooltip" ? /* @__PURE__ */ a(l, {
30
+ }, [S]), f === "tooltip" ? /* @__PURE__ */ a(l, {
35
31
  title: d,
36
32
  arrow: !0,
37
33
  children: /* @__PURE__ */ a(u, {
@@ -65,7 +61,9 @@ var d = ({ text: d = "", variant: f = "expandable", lines: p = 3 }) => {
65
61
  variant: "body2",
66
62
  children: [m ? d : v, g && /* @__PURE__ */ o(i, { children: [m ? " " : "… ", /* @__PURE__ */ a(c, {
67
63
  component: "span",
68
- onClick: C,
64
+ onClick: () => {
65
+ h(!m);
66
+ },
69
67
  sx: {
70
68
  cursor: "pointer",
71
69
  fontSize: "inherit"
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-theme-demo-C0BGeh2P.js";
1
+ import { t as e } from "../s-theme-demo-BHyjzAU0.js";
2
2
  export { e as SThemeDemo, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-theme-demo-C0BGeh2P.js";
1
+ import { t as e } from "../s-theme-demo-BHyjzAU0.js";
2
2
  export { e as default };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./createSvgIcon-BmN7SAhg.js";
2
- import { t } from "./s-theme-switch-Cz5QBl69.js";
3
- import { t as n } from "./Favorite-DNaf3wqS.js";
4
- import { t as r } from "./s-text-field-w4T9VXLw.js";
1
+ import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
+ import { t } from "./s-theme-switch-D1FpcDj1.js";
3
+ import { t as n } from "./Favorite-DIml4fHR.js";
4
+ import { t as r } from "./s-text-field-qps0aDNS.js";
5
5
  import { SForm as i } from "./s-form/s-form.js";
6
6
  import { SButton as a } from "./s-button/s-button.js";
7
7
  import * as o from "react";
@@ -8,6 +8,8 @@ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMo
8
8
  children: React.ReactNode;
9
9
  /** Disable custom theme for testing/docs (falls back to no theme) */
10
10
  disableCustomTheme?: boolean;
11
+ /** Disable MUI CssBaseline global reset when this provider is nested in another app shell */
12
+ disableCssBaseline?: boolean;
11
13
  /** Additional theme component overrides */
12
14
  themeComponents?: ThemeOptions['components'];
13
15
  /** Default color mode (defaults to 'system') */
@@ -16,7 +18,7 @@ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMo
16
18
  theme?: Theme;
17
19
  }
18
20
  export declare const SThemeProvider: {
19
- ({ children, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps): React.JSX.Element;
21
+ ({ children, disableCssBaseline, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps): React.JSX.Element;
20
22
  displayName: string;
21
23
  };
22
24
  export default SThemeProvider;
@@ -1,11 +1,11 @@
1
- import { i as e, n as t, r as n, t as r } from "../theme-primitives-DHiY0aFC.js";
1
+ import { i as e, n as t, r as n, t as r } from "../theme-primitives-OrQ-xFJR.js";
2
2
  import { components as i } from "../theme/components/components.js";
3
3
  import * as a from "react";
4
- import { jsx as o } from "react/jsx-runtime";
5
- import { ThemeProvider as s, createTheme as c } from "@mui/material";
4
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ import { CssBaseline as c, ThemeProvider as l, createTheme as u } from "@mui/material";
6
6
  //#region lib/s-theme-provider/s-theme-provider.tsx
7
- var l = ({ children: l, disableCustomTheme: u, themeComponents: d, defaultMode: f = "system", theme: p, ...m }) => {
8
- let h = a.useMemo(() => u ? {} : c({
7
+ var d = ({ children: d, disableCssBaseline: f = !1, disableCustomTheme: p, themeComponents: m, defaultMode: h = "system", theme: g, ..._ }) => {
8
+ let v = a.useMemo(() => p ? {} : u({
9
9
  cssVariables: {
10
10
  colorSchemeSelector: "data-mui-color-scheme",
11
11
  cssVarPrefix: "s"
@@ -16,20 +16,20 @@ var l = ({ children: l, disableCustomTheme: u, themeComponents: d, defaultMode:
16
16
  shape: n,
17
17
  components: {
18
18
  ...i,
19
- ...d
19
+ ...m
20
20
  }
21
- }), [u, d]);
22
- return u ? /* @__PURE__ */ o(a.Fragment, { children: l }) : /* @__PURE__ */ o(s, {
21
+ }), [p, m]);
22
+ return p ? /* @__PURE__ */ o(a.Fragment, { children: d }) : /* @__PURE__ */ s(l, {
23
23
  disableTransitionOnChange: !0,
24
- ...m,
24
+ ..._,
25
25
  theme: {
26
- ...h,
27
- ...p
26
+ ...v,
27
+ ...g
28
28
  },
29
- defaultMode: f,
30
- children: l
29
+ defaultMode: h,
30
+ children: [!f && /* @__PURE__ */ o(c, {}), d]
31
31
  });
32
32
  };
33
- l.displayName = "SThemeProvider";
33
+ d.displayName = "SThemeProvider";
34
34
  //#endregion
35
- export { l as SThemeProvider, l as default };
35
+ export { d as SThemeProvider, d as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-theme-switch-Cz5QBl69.js";
1
+ import { t as e } from "../s-theme-switch-D1FpcDj1.js";
2
2
  export { e as SThemeSwitch, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-theme-switch-Cz5QBl69.js";
1
+ import { t as e } from "../s-theme-switch-D1FpcDj1.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createSvgIcon-BmN7SAhg.js";
1
+ import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
2
  import { useCallback as t, useRef as n } from "react";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
4
  import { flushSync as i } from "react-dom";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tip-CqLspVS4.js";
1
+ import { t as e } from "../s-tip-D6M91nev.js";
2
2
  export { e as STip, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tip-CqLspVS4.js";
1
+ import { t as e } from "../s-tip-D6M91nev.js";
2
2
  export { e as STip, e as default };
@@ -1,6 +1,6 @@
1
- import { t as e } from "./Stack-D5D_RRtN.js";
2
- import { t } from "./createSvgIcon-BmN7SAhg.js";
3
- import { t as n } from "./Typography-Dy5dAg2u.js";
1
+ import { t as e } from "./Stack-BQkLmLFp.js";
2
+ import { t } from "./createSvgIcon-BdNZIlKS.js";
3
+ import { t as n } from "./Typography-EsraKPZO.js";
4
4
  import "react";
5
5
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
6
  //#region ../../node_modules/@mui/icons-material/LightbulbOutlined.mjs
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-RTPBIgcd.js";
1
+ import { t as e } from "../s-tool-bar-DOcT-lNr.js";
2
2
  export { e as SToolBar, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-RTPBIgcd.js";
1
+ import { t as e } from "../s-tool-bar-DOcT-lNr.js";
2
2
  export { e as SToolBar, e as default };
@@ -1,13 +1,14 @@
1
- import { t as e } from "./createSvgIcon-BmN7SAhg.js";
2
- import { t } from "./Close-BrK64qcq.js";
3
- import { t as n } from "./Download-BxH0i9Ni.js";
4
- import { t as r } from "./s-select-BHnfqAGl.js";
5
- import i, { useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
6
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
- import { createPortal as d } from "react-dom";
8
- import { Box as f, Checkbox as p, Dialog as m, DialogContent as h, DialogTitle as g, Divider as _, IconButton as v, Slider as y, TextField as b, Tooltip as x, Typography as S } from "@mui/material";
1
+ import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
+ import { t } from "./Close-oXeOGTZb.js";
3
+ import { t as n } from "./Download-DMm8oiCF.js";
4
+ import { t as r } from "./InfoOutlined-CqXSSVWh.js";
5
+ import { t as i } from "./s-select-ClL8bygg.js";
6
+ import a, { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
7
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
+ import { createPortal as f } from "react-dom";
9
+ import { Box as p, Checkbox as m, Dialog as h, DialogContent as g, DialogTitle as _, Divider as v, IconButton as y, Slider as b, TextField as x, Tooltip as S, Typography as C } from "@mui/material";
9
10
  //#region ../../node_modules/@mui/icons-material/AddPhotoAlternate.mjs
10
- var C = e(/* @__PURE__ */ l("path", { 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" }), "AddPhotoAlternate"), w = e(/* @__PURE__ */ l("path", { d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z" }), "AutoAwesome"), T = e(/* @__PURE__ */ l("path", { 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" }), "Autorenew"), E = e(/* @__PURE__ */ l("path", { 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" }), "InfoOutlined"), D = i.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ l(b, {
11
+ var w = e(/* @__PURE__ */ u("path", { 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" }), "AddPhotoAlternate"), T = e(/* @__PURE__ */ u("path", { d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z" }), "AutoAwesome"), E = e(/* @__PURE__ */ u("path", { 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" }), "Autorenew"), D = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ u(x, {
11
12
  value: t,
12
13
  onChange: (e) => n(e.target.value),
13
14
  onFocus: r,
@@ -19,7 +20,7 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
19
20
  maxRows: e.maxRows ?? 5,
20
21
  fullWidth: !0,
21
22
  ...e.componentProps?.textarea ?? {}
22
- })), O = i.memo((e) => /* @__PURE__ */ l(S, {
23
+ })), O = a.memo((e) => /* @__PURE__ */ u(C, {
23
24
  variant: "caption",
24
25
  sx: {
25
26
  whiteSpace: "nowrap",
@@ -29,13 +30,13 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
29
30
  textAlign: "center"
30
31
  },
31
32
  children: e.label
32
- })), k = i.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ u(f, {
33
+ })), k = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(p, {
33
34
  sx: {
34
35
  width: 120,
35
36
  display: "flex",
36
37
  flexDirection: "column"
37
38
  },
38
- children: [/* @__PURE__ */ l(O, { label: e.label }), /* @__PURE__ */ l(b, {
39
+ children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ u(x, {
39
40
  type: "number",
40
41
  value: t ?? e.defaultValue ?? 0,
41
42
  onChange: (e) => n(Number(e.target.value)),
@@ -50,16 +51,16 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
50
51
  sx: { "& input": { textAlign: "center" } },
51
52
  ...e.componentProps?.number ?? {}
52
53
  })]
53
- })), A = i.memo(({ input: e, value: t, onChange: n, onFocus: i, onBlur: a, disabled: o }) => /* @__PURE__ */ u(f, {
54
+ })), A = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: a, disabled: o }) => /* @__PURE__ */ d(p, {
54
55
  sx: {
55
56
  width: 180,
56
57
  display: "flex",
57
58
  flexDirection: "column"
58
59
  },
59
- children: [/* @__PURE__ */ l(O, { label: e.label }), /* @__PURE__ */ l(r, {
60
+ children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ u(i, {
60
61
  value: t ?? e.defaultValue ?? "",
61
62
  onChange: (e) => n(e.target.value),
62
- onFocus: i,
63
+ onFocus: r,
63
64
  onBlur: a,
64
65
  disabled: o,
65
66
  placeholder: e.placeholder,
@@ -70,19 +71,19 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
70
71
  searchPlaceholder: e.searchPlaceholder,
71
72
  ...e.componentProps?.select ?? {}
72
73
  })]
73
- })), j = i.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ u(f, {
74
+ })), j = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(p, {
74
75
  sx: {
75
76
  width: 160,
76
77
  display: "flex",
77
78
  flexDirection: "column"
78
79
  },
79
- children: [/* @__PURE__ */ l(O, { label: e.label }), /* @__PURE__ */ u(f, {
80
+ children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ d(p, {
80
81
  sx: {
81
82
  display: "flex",
82
83
  alignItems: "center",
83
84
  height: 36
84
85
  },
85
- children: [/* @__PURE__ */ l(y, {
86
+ children: [/* @__PURE__ */ u(b, {
86
87
  value: t ?? e.defaultValue ?? e.min ?? 0,
87
88
  onChange: (e, t) => n(t),
88
89
  onMouseDown: r,
@@ -93,7 +94,7 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
93
94
  step: e.step ?? 1,
94
95
  sx: { flex: 1 },
95
96
  ...e.componentProps?.slider ?? {}
96
- }), /* @__PURE__ */ l(f, {
97
+ }), /* @__PURE__ */ u(p, {
97
98
  sx: {
98
99
  minWidth: 60,
99
100
  textAlign: "center",
@@ -103,11 +104,11 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
103
104
  children: t ?? e.defaultValue ?? e.min ?? 0
104
105
  })]
105
106
  })]
106
- })), M = i.memo(({ input: e, value: n, onChange: r, disabled: a }) => {
107
- let s = i.useRef(null), [c, d] = i.useState([]), [p, m] = i.useState(null), h = e.multiple ?? !1, g = e.maxImages ?? 5;
108
- o(() => {
107
+ })), M = a.memo(({ input: e, value: n, onChange: r, disabled: i }) => {
108
+ let o = a.useRef(null), [c, l] = a.useState([]), [f, m] = a.useState(null), h = e.multiple ?? !1, g = e.maxImages ?? 5;
109
+ s(() => {
109
110
  let e = [];
110
- return d(((t) => {
111
+ return l(((t) => {
111
112
  if (!t) return [];
112
113
  let n = Array.isArray(t) ? t : [t], r = [], i = /* @__PURE__ */ new Map();
113
114
  return n.forEach((t) => {
@@ -140,49 +141,49 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
140
141
  } else r(t[0]);
141
142
  e.target.value = "";
142
143
  }
143
- }, y = (e, t) => {
144
+ }, v = (e, t) => {
144
145
  if (e.stopPropagation(), h && Array.isArray(n)) {
145
146
  let e = n.filter((e, n) => n !== t);
146
147
  r(e.length > 0 ? e : null);
147
148
  } else r(null);
148
149
  }, b = () => {
149
- a || h && c.length >= g || s.current?.click();
150
+ i || h && c.length >= g || o.current?.click();
150
151
  }, x = h && c.length < g;
151
- return /* @__PURE__ */ u(f, {
152
+ return /* @__PURE__ */ d(p, {
152
153
  sx: {
153
154
  display: "flex",
154
155
  alignItems: "center",
155
156
  gap: .75
156
157
  },
157
158
  children: [
158
- /* @__PURE__ */ l("input", {
159
- ref: s,
159
+ /* @__PURE__ */ u("input", {
160
+ ref: o,
160
161
  type: "file",
161
162
  accept: "image/*",
162
163
  multiple: h,
163
164
  onChange: _,
164
- disabled: a,
165
+ disabled: i,
165
166
  style: { display: "none" },
166
167
  ...e.componentProps?.image ?? {}
167
168
  }),
168
- c.map((e, n) => /* @__PURE__ */ u(f, {
169
+ c.map((e, n) => /* @__PURE__ */ d(p, {
169
170
  onMouseEnter: () => m(n),
170
171
  onMouseLeave: () => m(null),
171
172
  sx: {
172
173
  width: 50,
173
174
  height: 50,
174
175
  border: 1,
175
- borderColor: a ? "action.disabled" : "divider",
176
+ borderColor: i ? "action.disabled" : "divider",
176
177
  borderRadius: 1,
177
178
  display: "flex",
178
179
  alignItems: "center",
179
180
  justifyContent: "center",
180
- cursor: a ? "not-allowed" : "default",
181
+ cursor: i ? "not-allowed" : "default",
181
182
  position: "relative",
182
183
  overflow: "hidden",
183
184
  transition: "all 0.2s"
184
185
  },
185
- children: [/* @__PURE__ */ l(f, {
186
+ children: [/* @__PURE__ */ u(p, {
186
187
  component: "img",
187
188
  src: e.src,
188
189
  alt: `Preview ${n + 1}`,
@@ -191,8 +192,8 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
191
192
  height: "100%",
192
193
  objectFit: "cover"
193
194
  }
194
- }), !a && p === n && /* @__PURE__ */ l(f, {
195
- onClick: (e) => y(e, n),
195
+ }), !i && f === n && /* @__PURE__ */ u(p, {
196
+ onClick: (e) => v(e, n),
196
197
  sx: {
197
198
  position: "absolute",
198
199
  top: 0,
@@ -203,42 +204,42 @@ var C = e(/* @__PURE__ */ l("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99
203
204
  alignItems: "center",
204
205
  justifyContent: "center"
205
206
  },
206
- children: /* @__PURE__ */ l(v, {
207
- onClick: (e) => y(e, n),
208
- children: /* @__PURE__ */ l(t, {})
207
+ children: /* @__PURE__ */ u(y, {
208
+ onClick: (e) => v(e, n),
209
+ children: /* @__PURE__ */ u(t, {})
209
210
  })
210
211
  })]
211
212
  }, e.key)),
212
- (c.length === 0 || x) && /* @__PURE__ */ l(f, {
213
+ (c.length === 0 || x) && /* @__PURE__ */ u(p, {
213
214
  onClick: b,
214
215
  sx: {
215
216
  width: 50,
216
217
  height: 50,
217
218
  border: 1,
218
- borderColor: a ? "action.disabled" : "divider",
219
+ borderColor: i ? "action.disabled" : "divider",
219
220
  borderRadius: 1,
220
221
  display: "flex",
221
222
  alignItems: "center",
222
223
  justifyContent: "center",
223
- cursor: a ? "not-allowed" : "pointer",
224
+ cursor: i ? "not-allowed" : "pointer",
224
225
  transition: "all 0.2s",
225
226
  "&:hover": { bgcolor: "action.hover" }
226
227
  },
227
- children: /* @__PURE__ */ l(C, { sx: {
228
+ children: /* @__PURE__ */ u(w, { sx: {
228
229
  fontSize: 20,
229
- color: a ? "action.disabled" : "divider"
230
+ color: i ? "action.disabled" : "divider"
230
231
  } })
231
232
  })
232
233
  ]
233
234
  });
234
- }), N = i.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ u(f, {
235
+ }), N = a.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(p, {
235
236
  sx: {
236
237
  display: "flex",
237
238
  flexDirection: "column",
238
239
  alignItems: "center",
239
240
  minWidth: 60
240
241
  },
241
- children: [/* @__PURE__ */ l(O, { label: e.label }), /* @__PURE__ */ l(p, {
242
+ children: [/* @__PURE__ */ u(O, { label: e.label }), /* @__PURE__ */ u(m, {
242
243
  checked: t ?? e.defaultValue ?? !1,
243
244
  onChange: (e) => n(e.target.checked),
244
245
  onFocus: r,
@@ -268,33 +269,33 @@ function R(e, t, n, r) {
268
269
  }
269
270
  var z = (e) => {
270
271
  switch (e.input.type) {
271
- case "textarea": return /* @__PURE__ */ l(D, { ...e });
272
- case "number": return /* @__PURE__ */ l(k, { ...e });
273
- case "slider": return /* @__PURE__ */ l(j, { ...e });
274
- case "select": return /* @__PURE__ */ l(A, { ...e });
275
- case "image": return /* @__PURE__ */ l(M, {
272
+ case "textarea": return /* @__PURE__ */ u(D, { ...e });
273
+ case "number": return /* @__PURE__ */ u(k, { ...e });
274
+ case "slider": return /* @__PURE__ */ u(j, { ...e });
275
+ case "select": return /* @__PURE__ */ u(A, { ...e });
276
+ case "image": return /* @__PURE__ */ u(M, {
276
277
  input: e.input,
277
278
  value: e.value,
278
279
  onChange: e.onChange,
279
280
  disabled: e.disabled
280
281
  });
281
- case "checkbox": return /* @__PURE__ */ l(N, { ...e });
282
+ case "checkbox": return /* @__PURE__ */ u(N, { ...e });
282
283
  default: return null;
283
284
  }
284
- }, B = i.memo(({ input: e, value: t, disabled: n, onChange: r, onFocus: i, onBlur: a }) => e.renderInput ? /* @__PURE__ */ l(f, { children: e.renderInput({
285
+ }, B = a.memo(({ input: e, value: t, disabled: n, onChange: r, onFocus: i, onBlur: a }) => e.renderInput ? /* @__PURE__ */ u(p, { children: e.renderInput({
285
286
  value: t,
286
287
  onChange: r,
287
288
  onFocus: i,
288
289
  onBlur: a,
289
290
  disabled: n
290
- }) }) : /* @__PURE__ */ l(z, {
291
+ }) }) : /* @__PURE__ */ u(z, {
291
292
  input: e,
292
293
  value: t,
293
294
  onChange: r,
294
295
  onFocus: i,
295
296
  onBlur: a,
296
297
  disabled: n
297
- })), V = i.memo(({ customActionButtons: e, infoContent: t, infoTooltip: r, downloadTooltip: i, resetTooltip: a, processTooltip: o, hideProcessButton: s, processActionDisabled: c, onInfoOpen: d, onDownload: p, onReset: m, onProcess: h }) => /* @__PURE__ */ u(f, {
298
+ })), V = a.memo(({ customActionButtons: e, infoContent: t, infoTooltip: i, downloadTooltip: a, resetTooltip: o, processTooltip: s, hideProcessButton: c, processActionDisabled: l, onInfoOpen: f, onDownload: m, onReset: h, onProcess: g }) => /* @__PURE__ */ d(p, {
298
299
  sx: {
299
300
  display: "flex",
300
301
  alignItems: "center",
@@ -303,43 +304,43 @@ var z = (e) => {
303
304
  },
304
305
  children: [
305
306
  e,
306
- t && /* @__PURE__ */ l(x, {
307
- title: r,
308
- children: /* @__PURE__ */ l(v, {
309
- onClick: d,
310
- children: /* @__PURE__ */ l(E, {})
311
- })
312
- }),
313
- /* @__PURE__ */ l(x, {
307
+ t && /* @__PURE__ */ u(S, {
314
308
  title: i,
315
- children: /* @__PURE__ */ l(v, {
316
- onClick: p,
317
- children: /* @__PURE__ */ l(n, {})
309
+ children: /* @__PURE__ */ u(y, {
310
+ onClick: f,
311
+ children: /* @__PURE__ */ u(r, {})
318
312
  })
319
313
  }),
320
- /* @__PURE__ */ l(x, {
314
+ /* @__PURE__ */ u(S, {
321
315
  title: a,
322
- children: /* @__PURE__ */ l(v, {
316
+ children: /* @__PURE__ */ u(y, {
323
317
  onClick: m,
324
- children: /* @__PURE__ */ l(T, {})
318
+ children: /* @__PURE__ */ u(n, {})
325
319
  })
326
320
  }),
327
- !s && /* @__PURE__ */ l(x, {
321
+ /* @__PURE__ */ u(S, {
328
322
  title: o,
329
- children: /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(v, {
323
+ children: /* @__PURE__ */ u(y, {
330
324
  onClick: h,
331
- disabled: c,
325
+ children: /* @__PURE__ */ u(E, {})
326
+ })
327
+ }),
328
+ !c && /* @__PURE__ */ u(S, {
329
+ title: s,
330
+ children: /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(y, {
331
+ onClick: g,
332
+ disabled: l,
332
333
  size: "large",
333
- children: /* @__PURE__ */ l(w, { color: c ? "disabled" : "primary" })
334
+ children: /* @__PURE__ */ u(T, { color: l ? "disabled" : "primary" })
334
335
  }) })
335
336
  })
336
337
  ]
337
- })), H = ({ inputs: e = [], onProcess: t, onReset: n, onDownload: r, processing: i = !1, uploading: o = !1, inputValues: p = {}, onInputChange: v, customActionButtons: y, hideProcessButton: b = !1, processButtonDisabled: x = !1, getInputDisabled: S, processTooltip: C = "Process", downloadTooltip: w = "Download", resetTooltip: T = "Reset", infoTooltip: E = "Information", infoTitle: D = "Tool Information", infoContent: O, position: k = "bottom", relative: A = !1, containerSx: j, sx: M }) => {
338
- let [N, F] = c(!1), z = s(() => e.length === 0 ? !0 : e.every((e) => P(e, p[e.key])), [e, p]), { imageInputs: H, textareaInputs: U, paramInputs: W } = s(() => I(e), [e]), G = L(H, W), K = R(x, z, o, i), q = a(() => {}, []), J = a(() => {}, []), Y = a((e, t, n) => {
339
- v?.(e, t, n);
340
- }, [v]), X = a(() => F(!0), []), Z = a(() => F(!1), []), Q = a((e) => {
341
- let t = p[e.key];
342
- return /* @__PURE__ */ l(B, {
338
+ })), H = ({ inputs: e = [], onProcess: t, onReset: n, onDownload: r, processing: i = !1, uploading: a = !1, inputValues: s = {}, onInputChange: m, customActionButtons: y, hideProcessButton: b = !1, processButtonDisabled: x = !1, getInputDisabled: S, processTooltip: C = "Process", downloadTooltip: w = "Download", resetTooltip: T = "Reset", infoTooltip: E = "Information", infoTitle: D = "Tool Information", infoContent: O, position: k = "bottom", relative: A = !1, containerSx: j, sx: M }) => {
339
+ let [N, F] = l(!1), z = c(() => e.length === 0 ? !0 : e.every((e) => P(e, s[e.key])), [e, s]), { imageInputs: H, textareaInputs: U, paramInputs: W } = c(() => I(e), [e]), G = L(H, W), K = R(x, z, a, i), q = o(() => {}, []), J = o(() => {}, []), Y = o((e, t, n) => {
340
+ m?.(e, t, n);
341
+ }, [m]), X = o(() => F(!0), []), Z = o(() => F(!1), []), Q = o((e) => {
342
+ let t = s[e.key];
343
+ return /* @__PURE__ */ u(B, {
343
344
  input: e,
344
345
  value: t,
345
346
  onChange: (t) => Y(e.key, t),
@@ -348,12 +349,12 @@ var z = (e) => {
348
349
  disabled: S?.(e.key) ?? !1
349
350
  }, e.key);
350
351
  }, [
351
- p,
352
+ s,
352
353
  S,
353
354
  Y,
354
355
  q,
355
356
  J
356
- ]), $ = /* @__PURE__ */ u(f, {
357
+ ]), $ = /* @__PURE__ */ d(p, {
357
358
  sx: {
358
359
  position: A ? "relative" : "fixed",
359
360
  [k]: A ? "auto" : 20,
@@ -366,7 +367,7 @@ var z = (e) => {
366
367
  mb: A && k === "bottom" ? 2 : 0,
367
368
  ...j
368
369
  },
369
- children: [/* @__PURE__ */ u(f, {
370
+ children: [/* @__PURE__ */ d(p, {
370
371
  sx: {
371
372
  display: "flex",
372
373
  flexDirection: "column",
@@ -378,28 +379,28 @@ var z = (e) => {
378
379
  bgcolor: "background.default",
379
380
  ...M
380
381
  },
381
- children: [U.length > 0 && /* @__PURE__ */ l(f, {
382
+ children: [U.length > 0 && /* @__PURE__ */ u(p, {
382
383
  sx: {
383
384
  display: "flex",
384
385
  flexDirection: "column",
385
386
  gap: 2
386
387
  },
387
388
  children: U.map(Q)
388
- }), /* @__PURE__ */ u(f, {
389
+ }), /* @__PURE__ */ d(p, {
389
390
  sx: {
390
391
  display: "flex",
391
392
  alignItems: "center",
392
393
  gap: .5
393
394
  },
394
395
  children: [
395
- /* @__PURE__ */ l(f, {
396
+ /* @__PURE__ */ u(p, {
396
397
  sx: {
397
398
  display: "flex",
398
399
  alignItems: "center",
399
400
  gap: 2,
400
401
  flex: 1
401
402
  },
402
- children: G && /* @__PURE__ */ u(f, {
403
+ children: G && /* @__PURE__ */ d(p, {
403
404
  sx: {
404
405
  display: "flex",
405
406
  alignItems: "flex-end",
@@ -408,7 +409,7 @@ var z = (e) => {
408
409
  children: [H.map(Q), W.map(Q)]
409
410
  })
410
411
  }),
411
- G && /* @__PURE__ */ l(_, {
412
+ G && /* @__PURE__ */ u(v, {
412
413
  orientation: "vertical",
413
414
  flexItem: !0,
414
415
  sx: {
@@ -416,7 +417,7 @@ var z = (e) => {
416
417
  flexShrink: 0
417
418
  }
418
419
  }),
419
- /* @__PURE__ */ l(V, {
420
+ /* @__PURE__ */ u(V, {
420
421
  customActionButtons: y,
421
422
  infoContent: O,
422
423
  infoTooltip: E,
@@ -432,15 +433,15 @@ var z = (e) => {
432
433
  })
433
434
  ]
434
435
  })]
435
- }), O && /* @__PURE__ */ u(m, {
436
+ }), O && /* @__PURE__ */ d(h, {
436
437
  open: N,
437
438
  onClose: Z,
438
439
  maxWidth: "sm",
439
440
  fullWidth: !0,
440
- children: [/* @__PURE__ */ l(g, { children: D }), /* @__PURE__ */ l(h, { children: O })]
441
+ children: [/* @__PURE__ */ u(_, { children: D }), /* @__PURE__ */ u(g, { children: O })]
441
442
  })]
442
443
  });
443
- return !A && typeof window < "u" ? d($, document.body) : $;
444
+ return !A && typeof window < "u" ? f($, document.body) : $;
444
445
  };
445
446
  H.displayName = "SToolBar";
446
447
  //#endregion