@solostylist/ui-kit 1.0.166 → 1.0.168

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 (241) 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 +182 -172
  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 +43 -22
  13. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +336 -255
  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.d.ts +2 -0
  154. package/dist/s-pixel-reveal/index.js +4 -0
  155. package/dist/s-pixel-reveal/package.json +5 -0
  156. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +27 -0
  157. package/dist/s-pixel-reveal/s-pixel-reveal.js +156 -0
  158. package/dist/s-radial-pulse-animate/index.js +2 -2
  159. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
  160. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
  161. package/dist/s-rating/index.js +2 -2
  162. package/dist/s-rating/s-rating.d.ts +7 -1
  163. package/dist/s-rating/s-rating.js +15 -5
  164. package/dist/s-review/index.js +2 -2
  165. package/dist/s-review/s-review.d.ts +25 -1
  166. package/dist/s-review/s-review.js +104 -97
  167. package/dist/s-scroll-reveal/index.js +2 -2
  168. package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
  169. package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
  170. package/dist/s-scroll-to-top/index.js +2 -2
  171. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
  172. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
  173. package/dist/s-select/index.js +2 -2
  174. package/dist/s-select/s-select.d.ts +3 -22
  175. package/dist/s-select/s-select.js +76 -72
  176. package/dist/s-select-list/index.js +2 -2
  177. package/dist/s-select-list/s-select-list.d.ts +16 -19
  178. package/dist/s-select-list/s-select-list.js +33 -28
  179. package/dist/s-skeleton/index.js +2 -2
  180. package/dist/s-skeleton/s-skeleton.d.ts +6 -22
  181. package/dist/s-skeleton/s-skeleton.js +28 -18
  182. package/dist/s-snackbar-message/index.js +4 -4
  183. package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
  184. package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
  185. package/dist/s-spotlight-cursor/index.js +2 -2
  186. package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
  187. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
  188. package/dist/s-stripe/index.d.ts +4 -1
  189. package/dist/s-stripe/index.js +7 -4
  190. package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
  191. package/dist/s-stripe/s-stripe-cvc.js +15 -0
  192. package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
  193. package/dist/s-stripe/s-stripe-expiry.js +15 -0
  194. package/dist/s-stripe/s-stripe-number.d.ts +8 -0
  195. package/dist/s-stripe/s-stripe-number.js +15 -0
  196. package/dist/s-stripe/s-stripe.d.ts +6 -85
  197. package/dist/s-stripe/s-stripe.js +24 -27
  198. package/dist/s-stripe/stripe-input.js +22 -18
  199. package/dist/s-tabs/index.js +6 -6
  200. package/dist/s-tabs/s-tab-panel.d.ts +11 -1
  201. package/dist/s-tabs/s-tab-panel.js +25 -16
  202. package/dist/s-tabs/s-tab.js +9 -5
  203. package/dist/s-tabs/s-tabs.d.ts +24 -3
  204. package/dist/s-tabs/s-tabs.js +34 -25
  205. package/dist/s-text-editor/index.js +3 -3
  206. package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
  207. package/dist/s-text-editor/s-text-editor.d.ts +13 -11
  208. package/dist/s-text-editor/s-text-editor.js +44 -30
  209. package/dist/s-text-field/index.js +2 -2
  210. package/dist/s-text-field/s-text-field.d.ts +6 -15
  211. package/dist/s-text-field/s-text-field.js +38 -28
  212. package/dist/s-text-shimmer/index.js +2 -2
  213. package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
  214. package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
  215. package/dist/s-text-truncation/index.js +2 -2
  216. package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
  217. package/dist/s-text-truncation/s-text-truncation.js +34 -20
  218. package/dist/s-theme-demo/s-theme-demo.js +238 -223
  219. package/dist/s-theme-provider/index.js +1 -1
  220. package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
  221. package/dist/s-theme-provider/s-theme-provider.js +44 -34
  222. package/dist/s-theme-switch/s-theme-switch.js +23 -19
  223. package/dist/s-tip/index.js +2 -2
  224. package/dist/s-tip/s-tip.d.ts +5 -22
  225. package/dist/s-tip/s-tip.js +22 -12
  226. package/dist/s-two-pane-layout/index.js +10 -2
  227. package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
  228. package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
  229. package/dist/s-typewriter-text/index.js +2 -2
  230. package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
  231. package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
  232. package/dist/s-zoom-image/index.js +10 -2
  233. package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
  234. package/dist/s-zoom-image/s-zoom-image.js +62 -52
  235. package/dist/theme/components/alert.d.ts +1440 -1440
  236. package/dist/theme/components/button.d.ts +2156 -2156
  237. package/dist/theme/components/chip.d.ts +2 -2
  238. package/dist/theme/customizations/data-display.js +1 -1
  239. package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
  240. package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
  241. package/package.json +10 -4
@@ -1,4 +1,4 @@
1
- import { default as o } from "./s-dialog.js";
1
+ import { SDialog as e } from "./s-dialog.js";
2
2
  export {
3
- o as default
3
+ e as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { Breakpoint } from '@mui/material';
2
2
  import * as React from 'react';
3
3
  /**
4
- * Props interface for SDialog component
4
+ * Props for the SDialog component.
5
5
  */
6
6
  export interface SDialogProps {
7
7
  /** Dialog title - can be string or React element */
@@ -24,20 +24,7 @@ export interface SDialogProps {
24
24
  showClose?: boolean;
25
25
  }
26
26
  /**
27
- * SDialog - A flexible dialog component that wraps Material-UI Dialog with enhanced features.
28
- *
29
- * Key features:
30
- * - Automatic string content wrapping in Typography component
31
- * - Optional form wrapper for dialog-based forms
32
- * - Configurable close button in title bar
33
- * - Responsive max width with Material-UI breakpoints
34
- * - Consistent title styling with capitalization
35
- * - Flexible content and action areas
36
- * - Proper spacing and alignment for title elements
37
- * - Ref forwarding to DialogContent for scroll control
38
- *
39
- * @param props - SDialogProps with dialog configuration and content
40
- * @returns JSX.Element - Enhanced Material-UI Dialog
27
+ * A flexible dialog component that wraps Material-UI Dialog with enhanced form support and customization.
41
28
  */
42
- declare const SDialog: React.ForwardRefExoticComponent<SDialogProps & React.RefAttributes<HTMLDivElement>>;
29
+ export declare const SDialog: React.ForwardRefExoticComponent<SDialogProps & React.RefAttributes<HTMLDivElement>>;
43
30
  export default SDialog;
@@ -1,35 +1,44 @@
1
- import { j as r } from "../jsx-runtime-OVHDjVDe.js";
1
+ import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
2
  import * as f from "react";
3
- import { C as j } from "../Close-BRlEKA2Q.js";
4
- import { Dialog as m, DialogTitle as h, Stack as g, Typography as n, IconButton as u, DialogContent as y, DialogActions as D } from "@mui/material";
5
- const w = f.forwardRef(
3
+ import { C as h } from "../Close-BRlEKA2Q.js";
4
+ import { Dialog as g, DialogTitle as y, Stack as v, Typography as r, IconButton as b, DialogContent as x, DialogActions as w } from "@mui/material";
5
+ const o = f.forwardRef(
6
6
  ({
7
- title: s,
8
- content: e,
9
- actions: i,
10
- onClose: o = () => {
7
+ title: a,
8
+ content: t,
9
+ actions: l,
10
+ onClose: n = () => {
11
11
  },
12
- open: t = !1,
13
- maxWidth: l = "sm",
14
- useForm: c = !1,
15
- onSubmit: d = () => {
12
+ open: s = !1,
13
+ maxWidth: d = "sm",
14
+ useForm: u = !1,
15
+ onSubmit: m = () => {
16
16
  },
17
- showClose: x = !0
17
+ showClose: c = !0
18
18
  }, p) => {
19
- const a = /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
20
- e && /* @__PURE__ */ r.jsx(y, { ref: p, children: typeof e == "string" ? /* @__PURE__ */ r.jsx(n, { color: "text.secondary", variant: "body2", children: e }) : e }),
21
- i && /* @__PURE__ */ r.jsx(D, { children: i })
19
+ const i = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
20
+ t && /* @__PURE__ */ e.jsx(x, { ref: p, children: typeof t == "string" ? /* @__PURE__ */ e.jsx(r, { color: "text.secondary", variant: "body2", children: t }) : t }),
21
+ l && /* @__PURE__ */ e.jsx(w, { children: l })
22
22
  ] });
23
- return /* @__PURE__ */ r.jsxs(m, { fullWidth: !0, maxWidth: l, onClose: o, open: t, children: [
24
- s && /* @__PURE__ */ r.jsx(h, { children: /* @__PURE__ */ r.jsxs(g, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
25
- typeof s == "string" ? /* @__PURE__ */ r.jsx(n, { variant: "h5", textTransform: "capitalize", children: s }) : /* @__PURE__ */ r.jsx("div", { children: s }),
26
- x && /* @__PURE__ */ r.jsx(u, { onClick: o, children: /* @__PURE__ */ r.jsx(j, {}) })
23
+ return /* @__PURE__ */ e.jsxs(g, { fullWidth: !0, maxWidth: d, onClose: n, open: s, children: [
24
+ a && /* @__PURE__ */ e.jsx(y, { children: /* @__PURE__ */ e.jsxs(v, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
25
+ typeof a == "string" ? /* @__PURE__ */ e.jsx(r, { variant: "h5", textTransform: "capitalize", children: a }) : /* @__PURE__ */ e.jsx("div", { children: a }),
26
+ c && /* @__PURE__ */ e.jsx(b, { onClick: n, children: /* @__PURE__ */ e.jsx(h, {}) })
27
27
  ] }) }),
28
- c ? /* @__PURE__ */ r.jsx("form", { onSubmit: d, children: a }) : a
28
+ u ? /* @__PURE__ */ e.jsx("form", { onSubmit: m, children: i }) : i
29
29
  ] });
30
30
  }
31
31
  );
32
- w.displayName = "SDialog";
32
+ o.displayName = "SDialog";
33
+ try {
34
+ o.displayName = "SDialog", o.__docgenInfo = { description: "A flexible dialog component that wraps Material-UI Dialog with enhanced form support and customization.", displayName: "SDialog", props: { title: { defaultValue: null, description: "Dialog title - can be string or React element", name: "title", required: !1, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Dialog content - can be string (auto-wrapped in Typography) or React element", name: "content", required: !1, type: { name: "ReactNode" } }, actions: { defaultValue: null, description: "Action buttons rendered in the dialog footer", name: "actions", required: !1, type: { name: "ReactNode" } }, onClose: { defaultValue: { value: "() => {}" }, description: "Callback fired when dialog should close", name: "onClose", required: !1, type: { name: "(() => void)" } }, open: { defaultValue: { value: "false" }, description: "Whether the dialog is open", name: "open", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "sm" }, description: "Maximum width constraint (Material-UI breakpoint)", name: "maxWidth", required: !1, type: { name: "enum", value: [{ value: '"xs"' }, { value: '"sm"' }, { value: '"md"' }, { value: '"lg"' }, { value: '"xl"' }] } }, useForm: { defaultValue: { value: "false" }, description: "Whether to wrap content in a form element", name: "useForm", required: !1, type: { name: "boolean" } }, onSubmit: { defaultValue: { value: "() => {}" }, description: "Form submit handler (only used if useForm is true)", name: "onSubmit", required: !1, type: { name: "(() => void)" } }, showClose: { defaultValue: { value: "true" }, description: "Whether to show the close button in the title bar", name: "showClose", required: !1, type: { name: "boolean" } } } };
35
+ } catch {
36
+ }
37
+ try {
38
+ sdialog.displayName = "sdialog", sdialog.__docgenInfo = { description: "A flexible dialog component that wraps Material-UI Dialog with enhanced form support and customization.", displayName: "sdialog", props: { title: { defaultValue: null, description: "Dialog title - can be string or React element", name: "title", required: !1, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Dialog content - can be string (auto-wrapped in Typography) or React element", name: "content", required: !1, type: { name: "ReactNode" } }, actions: { defaultValue: null, description: "Action buttons rendered in the dialog footer", name: "actions", required: !1, type: { name: "ReactNode" } }, onClose: { defaultValue: { value: "() => {}" }, description: "Callback fired when dialog should close", name: "onClose", required: !1, type: { name: "(() => void)" } }, open: { defaultValue: { value: "false" }, description: "Whether the dialog is open", name: "open", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "sm" }, description: "Maximum width constraint (Material-UI breakpoint)", name: "maxWidth", required: !1, type: { name: "enum", value: [{ value: '"xs"' }, { value: '"sm"' }, { value: '"md"' }, { value: '"lg"' }, { value: '"xl"' }] } }, useForm: { defaultValue: { value: "false" }, description: "Whether to wrap content in a form element", name: "useForm", required: !1, type: { name: "boolean" } }, onSubmit: { defaultValue: { value: "() => {}" }, description: "Form submit handler (only used if useForm is true)", name: "onSubmit", required: !1, type: { name: "(() => void)" } }, showClose: { defaultValue: { value: "true" }, description: "Whether to show the close button in the title bar", name: "showClose", required: !1, type: { name: "boolean" } } } };
39
+ } catch {
40
+ }
33
41
  export {
34
- w as default
42
+ o as SDialog,
43
+ o as default
35
44
  };
@@ -1,6 +1,6 @@
1
- import { DialogConfirmProvider as i, default as e, useDialogConfirm as f } from "./s-dialog-confirm.js";
1
+ import { DialogConfirmProvider as r, SDialogConfirm as a, useDialogConfirm as f } from "./s-dialog-confirm.js";
2
2
  export {
3
- i as DialogConfirmProvider,
4
- e as default,
3
+ r as DialogConfirmProvider,
4
+ a as default,
5
5
  f as useDialogConfirm
6
6
  };
@@ -22,20 +22,12 @@ interface SDialogConfirmProps {
22
22
  loading?: boolean;
23
23
  }
24
24
  /**
25
- * SDialogConfirm - A confirmation dialog component with Cancel/Confirm actions.
26
- *
27
- * Key features:
28
- * - Pre-built Cancel and Confirm buttons with proper styling
29
- * - Loading state support that disables buttons during async operations
30
- * - Automatic string content wrapping in Typography component
31
- * - Configurable close button in title bar
32
- * - Consistent styling with the main SDialog component
33
- * - Built-in button labels (Cancel/Confirm) for common use cases
34
- *
35
- * @param props - SDialogConfirmProps with dialog configuration and handlers
36
- * @returns JSX.Element - Confirmation dialog with standard actions
25
+ * A confirmation dialog component with Cancel/Confirm actions and loading state support.
37
26
  */
38
- declare const SDialogConfirm: ({ title, content, onConfirm, onClose, open, maxWidth, showClose, loading, }: SDialogConfirmProps) => React.JSX.Element;
27
+ export declare const SDialogConfirm: {
28
+ ({ title, content, onConfirm, onClose, open, maxWidth, showClose, loading, }: SDialogConfirmProps): React.JSX.Element;
29
+ displayName: string;
30
+ };
39
31
  export default SDialogConfirm;
40
32
  /**
41
33
  * Options for opening a confirmation dialog
@@ -1,73 +1,80 @@
1
- import { j as n } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as r from "react";
3
- import { C as p } from "../Close-BRlEKA2Q.js";
4
- import { Dialog as g, DialogTitle as j, Stack as D, IconButton as v, DialogContent as y, DialogActions as b, Button as d } from "@mui/material";
5
- import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as m } from "../Typography-B7LOtCzI.js";
7
- const w = ({
8
- title: e,
9
- content: o,
10
- onConfirm: s = () => {
1
+ import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
+ import * as i from "react";
3
+ import { C as x } from "../Close-BRlEKA2Q.js";
4
+ import { Dialog as v, DialogTitle as y, Stack as j, IconButton as b, DialogContent as D, DialogActions as w, Button as u } from "@mui/material";
5
+ import { useDialog as V } from "../hooks/use-dialog.js";
6
+ import { T as m } from "../Typography-C8jwvSWe.js";
7
+ const s = ({
8
+ title: o,
9
+ content: n,
10
+ onConfirm: l = () => {
11
11
  },
12
- onClose: i = () => {
12
+ onClose: a = () => {
13
13
  },
14
14
  open: t = !1,
15
- maxWidth: a = "sm",
15
+ maxWidth: d = "sm",
16
16
  showClose: c = !0,
17
- loading: l = !1
18
- }) => /* @__PURE__ */ n.jsxs(g, { fullWidth: !0, maxWidth: a, onClose: i, open: t, children: [
19
- e && /* @__PURE__ */ n.jsx(j, { children: /* @__PURE__ */ n.jsxs(D, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
20
- typeof e == "string" ? /* @__PURE__ */ n.jsx(m, { variant: "h5", textTransform: "capitalize", children: e }) : /* @__PURE__ */ n.jsx("div", { children: e }),
21
- c && /* @__PURE__ */ n.jsx(v, { onClick: i, children: /* @__PURE__ */ n.jsx(p, {}) })
17
+ loading: r = !1
18
+ }) => /* @__PURE__ */ e.jsxs(v, { fullWidth: !0, maxWidth: d, onClose: a, open: t, children: [
19
+ o && /* @__PURE__ */ e.jsx(y, { children: /* @__PURE__ */ e.jsxs(j, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
20
+ typeof o == "string" ? /* @__PURE__ */ e.jsx(m, { variant: "h5", textTransform: "capitalize", children: o }) : /* @__PURE__ */ e.jsx("div", { children: o }),
21
+ c && /* @__PURE__ */ e.jsx(b, { onClick: a, children: /* @__PURE__ */ e.jsx(x, {}) })
22
22
  ] }) }),
23
- o && /* @__PURE__ */ n.jsx(y, { children: typeof o == "string" ? /* @__PURE__ */ n.jsx(m, { color: "text.secondary", variant: "body2", children: o }) : o }),
24
- /* @__PURE__ */ n.jsx(b, { children: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
25
- /* @__PURE__ */ n.jsx(d, { onClick: i, variant: "outlined", disabled: l, children: "Cancel" }),
26
- /* @__PURE__ */ n.jsx(d, { onClick: s, loading: l, children: "Confirm" })
23
+ n && /* @__PURE__ */ e.jsx(D, { children: typeof n == "string" ? /* @__PURE__ */ e.jsx(m, { color: "text.secondary", variant: "body2", children: n }) : n }),
24
+ /* @__PURE__ */ e.jsx(w, { children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
25
+ /* @__PURE__ */ e.jsx(u, { onClick: a, variant: "outlined", disabled: r, children: "Cancel" }),
26
+ /* @__PURE__ */ e.jsx(u, { onClick: l, loading: r, children: "Confirm" })
27
27
  ] }) })
28
- ] }), f = r.createContext(null), E = ({ children: e }) => {
29
- const o = k(), [s, i] = r.useState(!1), [t, a] = r.useState({
28
+ ] });
29
+ s.displayName = "SDialogConfirm";
30
+ const f = i.createContext(null), W = ({ children: o }) => {
31
+ const n = V(), [l, a] = i.useState(!1), [t, d] = i.useState({
30
32
  title: "",
31
33
  content: "",
32
34
  onConfirm: () => {
33
35
  }
34
36
  }), c = {
35
- handleOpen: r.useCallback(
36
- (x) => {
37
- const { title: C, content: h, onConfirm: u } = x;
38
- a({ title: C, content: h, onConfirm: u }), o.handleOpen();
37
+ handleOpen: i.useCallback(
38
+ (p) => {
39
+ const { title: h, content: C, onConfirm: g } = p;
40
+ d({ title: h, content: C, onConfirm: g }), n.handleOpen();
39
41
  },
40
- [o]
42
+ [n]
41
43
  ),
42
- handleClose: o.handleClose,
43
- open: o.open,
44
- loading: s,
45
- setLoading: i
46
- }, l = () => {
44
+ handleClose: n.handleClose,
45
+ open: n.open,
46
+ loading: l,
47
+ setLoading: a
48
+ }, r = () => {
47
49
  t.onConfirm();
48
50
  };
49
- return /* @__PURE__ */ n.jsxs(f.Provider, { value: c, children: [
50
- /* @__PURE__ */ n.jsx(
51
- w,
51
+ return /* @__PURE__ */ e.jsxs(f.Provider, { value: c, children: [
52
+ /* @__PURE__ */ e.jsx(
53
+ s,
52
54
  {
53
- open: o.open,
55
+ open: n.open,
54
56
  title: t == null ? void 0 : t.title,
55
57
  content: t == null ? void 0 : t.content,
56
- onClose: o.handleClose,
57
- onConfirm: l,
58
- loading: s
58
+ onClose: n.handleClose,
59
+ onConfirm: r,
60
+ loading: l
59
61
  }
60
62
  ),
61
- e
63
+ o
62
64
  ] });
63
- }, O = () => {
64
- const e = r.useContext(f);
65
- if (!e)
65
+ }, I = () => {
66
+ const o = i.useContext(f);
67
+ if (!o)
66
68
  throw new Error("useDialogConfirm must be used within a DialogConfirmProvider");
67
- return e;
69
+ return o;
68
70
  };
71
+ try {
72
+ s.displayName = "SDialogConfirm", s.__docgenInfo = { description: "A confirmation dialog component with Cancel/Confirm actions and loading state support.", displayName: "SDialogConfirm", props: { title: { defaultValue: null, description: "Dialog title - can be string or React element", name: "title", required: !1, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Dialog content - can be string (auto-wrapped in Typography) or React element", name: "content", required: !1, type: { name: "ReactNode" } }, onConfirm: { defaultValue: { value: "() => {}" }, description: "Callback fired when user confirms the action", name: "onConfirm", required: !1, type: { name: "(() => void)" } }, onClose: { defaultValue: { value: "() => {}" }, description: "Callback fired when dialog should close", name: "onClose", required: !1, type: { name: "(() => void)" } }, open: { defaultValue: { value: "false" }, description: "Whether the dialog is open", name: "open", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "sm" }, description: "Maximum width constraint (Material-UI breakpoint)", name: "maxWidth", required: !1, type: { name: "enum", value: [{ value: '"xs"' }, { value: '"sm"' }, { value: '"md"' }, { value: '"lg"' }, { value: '"xl"' }] } }, showClose: { defaultValue: { value: "true" }, description: "Whether to show the close button in the title bar", name: "showClose", required: !1, type: { name: "boolean" } }, loading: { defaultValue: { value: "false" }, description: "Whether the dialog is in loading state (disables buttons)", name: "loading", required: !1, type: { name: "boolean" } } } };
73
+ } catch {
74
+ }
69
75
  export {
70
- E as DialogConfirmProvider,
71
- w as default,
72
- O as useDialogConfirm
76
+ W as DialogConfirmProvider,
77
+ s as SDialogConfirm,
78
+ s as default,
79
+ I as useDialogConfirm
73
80
  };
@@ -1,6 +1,6 @@
1
- import { DialogMessageProvider as o, default as s, useDialogMessage as g } from "./s-dialog-message.js";
1
+ import { DialogMessageProvider as s, SDialogMessage as g, useDialogMessage as o } from "./s-dialog-message.js";
2
2
  export {
3
- o as DialogMessageProvider,
4
- s as default,
5
- g as useDialogMessage
3
+ s as DialogMessageProvider,
4
+ g as default,
5
+ o as useDialogMessage
6
6
  };
@@ -19,21 +19,11 @@ interface SDialogMessageProps {
19
19
  /** Whether to show the close button in the title bar */
20
20
  showClose?: boolean;
21
21
  }
22
- /**
23
- * SDialogMessage - A simple message dialog component with a single OK action.
24
- * Used for displaying informational messages, alerts, or notifications that require user acknowledgment.
25
- *
26
- * Key features:
27
- * - Single OK button for user acknowledgment
28
- * - Automatic string content wrapping in Typography component
29
- * - Configurable close button in title bar
30
- * - Consistent styling with other dialog components
31
- * - Simplified interface for common message dialog use cases
32
- *
33
- * @param props - SDialogMessageProps with dialog configuration and handlers
34
- * @returns JSX.Element - Message dialog with OK action
35
- */
36
- declare const SDialogMessage: ({ title, content, onClose, onOk, open, maxWidth, showClose, }: SDialogMessageProps) => React.JSX.Element;
22
+ /** A simple message dialog component for displaying informational messages that require user acknowledgment. */
23
+ export declare const SDialogMessage: {
24
+ ({ title, content, onClose, onOk, open, maxWidth, showClose, }: SDialogMessageProps): React.JSX.Element;
25
+ displayName: string;
26
+ };
37
27
  export default SDialogMessage;
38
28
  /**
39
29
  * Options for opening a message dialog
@@ -1,64 +1,71 @@
1
- import { j as o } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as s from "react";
3
- import { C as u } from "../Close-BRlEKA2Q.js";
4
- import { Dialog as p, DialogTitle as g, Stack as m, IconButton as j, DialogContent as C, DialogActions as f, Button as D } from "@mui/material";
5
- import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as c } from "../Typography-B7LOtCzI.js";
7
- const v = ({
8
- title: t,
1
+ import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
+ import * as n from "react";
3
+ import { C as h } from "../Close-BRlEKA2Q.js";
4
+ import { Dialog as g, DialogTitle as f, Stack as x, IconButton as y, DialogContent as C, DialogActions as v, Button as D } from "@mui/material";
5
+ import { useDialog as j } from "../hooks/use-dialog.js";
6
+ import { T as d } from "../Typography-C8jwvSWe.js";
7
+ const l = ({
8
+ title: o,
9
9
  content: e,
10
- onClose: n = () => {
10
+ onClose: a = () => {
11
11
  },
12
- onOk: r = () => {
12
+ onOk: s = () => {
13
13
  },
14
14
  open: i = !1,
15
- maxWidth: l = "sm",
16
- showClose: a = !0
17
- }) => /* @__PURE__ */ o.jsxs(p, { fullWidth: !0, maxWidth: l, onClose: n, open: i, children: [
18
- t && /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsxs(m, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
19
- typeof t == "string" ? /* @__PURE__ */ o.jsx(c, { variant: "h5", textTransform: "capitalize", children: t }) : /* @__PURE__ */ o.jsx("div", { children: t }),
20
- a && /* @__PURE__ */ o.jsx(j, { onClick: n, children: /* @__PURE__ */ o.jsx(u, {}) })
15
+ maxWidth: r = "sm",
16
+ showClose: c = !0
17
+ }) => /* @__PURE__ */ t.jsxs(g, { fullWidth: !0, maxWidth: r, onClose: a, open: i, children: [
18
+ o && /* @__PURE__ */ t.jsx(f, { children: /* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
19
+ typeof o == "string" ? /* @__PURE__ */ t.jsx(d, { variant: "h5", textTransform: "capitalize", children: o }) : /* @__PURE__ */ t.jsx("div", { children: o }),
20
+ c && /* @__PURE__ */ t.jsx(y, { onClick: a, children: /* @__PURE__ */ t.jsx(h, {}) })
21
21
  ] }) }),
22
- e && /* @__PURE__ */ o.jsx(C, { children: typeof e == "string" ? /* @__PURE__ */ o.jsx(c, { color: "text.secondary", variant: "body2", children: e }) : e }),
23
- /* @__PURE__ */ o.jsx(f, { children: /* @__PURE__ */ o.jsx(D, { onClick: r, children: "Ok" }) })
24
- ] }), d = s.createContext(null), I = ({ children: t }) => {
25
- const e = k(), [n, r] = s.useState({
22
+ e && /* @__PURE__ */ t.jsx(C, { children: typeof e == "string" ? /* @__PURE__ */ t.jsx(d, { color: "text.secondary", variant: "body2", children: e }) : e }),
23
+ /* @__PURE__ */ t.jsx(v, { children: /* @__PURE__ */ t.jsx(D, { onClick: s, children: "Ok" }) })
24
+ ] });
25
+ l.displayName = "SDialogMessage";
26
+ const u = n.createContext(null), M = ({ children: o }) => {
27
+ const e = j(), [a, s] = n.useState({
26
28
  title: "",
27
29
  content: "",
28
30
  onOk: e.handleClose
29
31
  // Default to closing dialog
30
32
  }), i = {
31
- handleOpen: s.useCallback(
32
- (l) => {
33
- const { title: a, content: h, onOk: x = e.handleClose } = l;
34
- r({ title: a, content: h, onOk: x }), e.handleOpen();
33
+ handleOpen: n.useCallback(
34
+ (r) => {
35
+ const { title: c, content: p, onOk: m = e.handleClose } = r;
36
+ s({ title: c, content: p, onOk: m }), e.handleOpen();
35
37
  },
36
38
  [e]
37
39
  ),
38
40
  handleClose: e.handleClose,
39
41
  open: e.open
40
42
  };
41
- return /* @__PURE__ */ o.jsxs(d.Provider, { value: i, children: [
42
- /* @__PURE__ */ o.jsx(
43
- v,
43
+ return /* @__PURE__ */ t.jsxs(u.Provider, { value: i, children: [
44
+ /* @__PURE__ */ t.jsx(
45
+ l,
44
46
  {
45
47
  open: e.open,
46
- title: n == null ? void 0 : n.title,
47
- content: n == null ? void 0 : n.content,
48
+ title: a == null ? void 0 : a.title,
49
+ content: a == null ? void 0 : a.content,
48
50
  onClose: e.handleClose,
49
- onOk: n == null ? void 0 : n.onOk
51
+ onOk: a == null ? void 0 : a.onOk
50
52
  }
51
53
  ),
52
- t
54
+ o
53
55
  ] });
54
- }, M = () => {
55
- const t = s.useContext(d);
56
- if (!t)
56
+ }, V = () => {
57
+ const o = n.useContext(u);
58
+ if (!o)
57
59
  throw new Error("useDialogMessage must be used within a DialogMessageProvider");
58
- return t;
60
+ return o;
59
61
  };
62
+ try {
63
+ l.displayName = "SDialogMessage", l.__docgenInfo = { description: "A simple message dialog component for displaying informational messages that require user acknowledgment.", displayName: "SDialogMessage", props: { title: { defaultValue: null, description: "Dialog title - can be string or React element", name: "title", required: !1, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Dialog content - can be string (auto-wrapped in Typography) or React element", name: "content", required: !1, type: { name: "ReactNode" } }, onClose: { defaultValue: { value: "() => {}" }, description: "Callback fired when dialog should close", name: "onClose", required: !1, type: { name: "(() => void)" } }, onOk: { defaultValue: { value: "() => {}" }, description: "Callback fired when user clicks OK button", name: "onOk", required: !1, type: { name: "(() => void)" } }, open: { defaultValue: { value: "false" }, description: "Whether the dialog is open", name: "open", required: !1, type: { name: "boolean" } }, maxWidth: { defaultValue: { value: "sm" }, description: "Maximum width constraint (Material-UI breakpoint)", name: "maxWidth", required: !1, type: { name: "enum", value: [{ value: '"xs"' }, { value: '"sm"' }, { value: '"md"' }, { value: '"lg"' }, { value: '"xl"' }] } }, showClose: { defaultValue: { value: "true" }, description: "Whether to show the close button in the title bar", name: "showClose", required: !1, type: { name: "boolean" } } } };
64
+ } catch {
65
+ }
60
66
  export {
61
- I as DialogMessageProvider,
62
- v as default,
63
- M as useDialogMessage
67
+ M as DialogMessageProvider,
68
+ l as SDialogMessage,
69
+ l as default,
70
+ V as useDialogMessage
64
71
  };
@@ -1,4 +1,4 @@
1
- import { default as o } from "./s-empty.js";
1
+ import { SEmpty as e } from "./s-empty.js";
2
2
  export {
3
- o as default
3
+ e as default
4
4
  };
@@ -6,24 +6,9 @@ export interface SEmptyProps {
6
6
  /** Custom text to display (defaults to 'No data available.') */
7
7
  title?: string;
8
8
  }
9
- /**
10
- * SEmpty - A simple component for displaying empty states in lists, tables, or data containers.
11
- *
12
- * Key features:
13
- * - Consistent typography and spacing for empty states
14
- * - Default message with option to customize
15
- * - Secondary text color for subtle appearance
16
- * - Vertical margin for proper spacing in layouts
17
- * - Minimal footprint for performance
18
- *
19
- * Commonly used in:
20
- * - Data tables with no results
21
- * - Empty lists or collections
22
- * - Search results with no matches
23
- * - Placeholder content areas
24
- *
25
- * @param props - SEmptyProps with optional custom title
26
- * @returns JSX.Element - Styled empty state message
27
- */
28
- declare const SEmpty: ({ title }: SEmptyProps) => React.JSX.Element;
9
+ /** A simple component for displaying empty states in lists, tables, or data containers. */
10
+ export declare const SEmpty: {
11
+ ({ title }: SEmptyProps): React.JSX.Element;
12
+ displayName: string;
13
+ };
29
14
  export default SEmpty;
@@ -1,6 +1,16 @@
1
- import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Typography as t } from "@mui/material";
3
- const m = ({ title: o }) => /* @__PURE__ */ r.jsx(t, { variant: "body2", color: "text.secondary", my: 3, children: o || "No data available." });
1
+ import { j as a } from "../jsx-runtime-OVHDjVDe.js";
2
+ import { Typography as s } from "@mui/material";
3
+ const e = ({ title: t }) => /* @__PURE__ */ a.jsx(s, { variant: "body2", color: "text.secondary", my: 3, children: t || "No data available." });
4
+ e.displayName = "SEmpty";
5
+ try {
6
+ e.displayName = "SEmpty", e.__docgenInfo = { description: "A simple component for displaying empty states in lists, tables, or data containers.", displayName: "SEmpty", props: { title: { defaultValue: null, description: "Custom text to display (defaults to 'No data available.')", name: "title", required: !1, type: { name: "string" } } } };
7
+ } catch {
8
+ }
9
+ try {
10
+ sempty.displayName = "sempty", sempty.__docgenInfo = { description: "A simple component for displaying empty states in lists, tables, or data containers.", displayName: "sempty", props: { title: { defaultValue: null, description: "Custom text to display (defaults to 'No data available.')", name: "title", required: !1, type: { name: "string" } } } };
11
+ } catch {
12
+ }
4
13
  export {
5
- m as default
14
+ e as SEmpty,
15
+ e as default
6
16
  };
@@ -1,4 +1,4 @@
1
- import { default as o } from "./s-error.js";
1
+ import { SError as a } from "./s-error.js";
2
2
  export {
3
- o as default
3
+ a as default
4
4
  };
@@ -1,22 +1,7 @@
1
1
  import { default as React } from 'react';
2
- /**
3
- * SError - A standardized error display component for 500 Internal Server Error states.
4
- *
5
- * Key features:
6
- * - Visual error indicator with SVG icon
7
- * - Clear error code and user-friendly message
8
- * - Centered layout with proper spacing
9
- * - Responsive image sizing
10
- * - Consistent typography hierarchy
11
- * - No props required - self-contained error state
12
- *
13
- * Commonly used for:
14
- * - API error boundaries
15
- * - Server-side rendering errors
16
- * - Unexpected application failures
17
- * - Error fallback UI
18
- *
19
- * @returns JSX.Element - Styled 500 error display
20
- */
21
- declare const SError: () => React.JSX.Element;
2
+ /** A standardized error display component for 500 Internal Server Error states. */
3
+ export declare const SError: {
4
+ (): React.JSX.Element;
5
+ displayName: string;
6
+ };
22
7
  export default SError;
@@ -1,8 +1,8 @@
1
1
  import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Stack as t, Box as a, Typography as e } from "@mui/material";
3
- const s = () => /* @__PURE__ */ r.jsxs(t, { alignItems: "center", gap: 2, children: [
2
+ import { Stack as a, Box as s, Typography as o } from "@mui/material";
3
+ const e = () => /* @__PURE__ */ r.jsxs(a, { alignItems: "center", gap: 2, children: [
4
4
  /* @__PURE__ */ r.jsx(
5
- a,
5
+ s,
6
6
  {
7
7
  alt: "Internal server error",
8
8
  component: "img",
@@ -10,9 +10,19 @@ const s = () => /* @__PURE__ */ r.jsxs(t, { alignItems: "center", gap: 2, childr
10
10
  sx: { height: "auto", maxWidth: "100%", width: "100px" }
11
11
  }
12
12
  ),
13
- /* @__PURE__ */ r.jsx(e, { variant: "h5", children: "500: Internal server error" }),
14
- /* @__PURE__ */ r.jsx(e, { variant: "body2", children: "We're sorry, but we encountered an error while trying to load the content. Please try again later." })
13
+ /* @__PURE__ */ r.jsx(o, { variant: "h5", children: "500: Internal server error" }),
14
+ /* @__PURE__ */ r.jsx(o, { variant: "body2", children: "We're sorry, but we encountered an error while trying to load the content. Please try again later." })
15
15
  ] });
16
+ e.displayName = "SError";
17
+ try {
18
+ e.displayName = "SError", e.__docgenInfo = { description: "A standardized error display component for 500 Internal Server Error states.", displayName: "SError", props: {} };
19
+ } catch {
20
+ }
21
+ try {
22
+ serror.displayName = "serror", serror.__docgenInfo = { description: "A standardized error display component for 500 Internal Server Error states.", displayName: "serror", props: {} };
23
+ } catch {
24
+ }
16
25
  export {
17
- s as default
26
+ e as SError,
27
+ e as default
18
28
  };
@@ -1,4 +1,4 @@
1
- import { default as o } from "./s-error-layout.js";
1
+ import { SErrorLayout as a } from "./s-error-layout.js";
2
2
  export {
3
- o as default
3
+ a as default
4
4
  };
@@ -1,5 +1,6 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  import { ButtonProps, SxProps, Theme, TypographyProps } from '@mui/material';
3
+ /** Props interface for SErrorLayout component */
3
4
  export interface SErrorLayoutProps {
4
5
  /** Source URL for the error image */
5
6
  imageSrc: string;
@@ -50,5 +51,9 @@ export interface SErrorLayoutProps {
50
51
  /** Custom content to render instead of the button */
51
52
  customActions?: ReactNode;
52
53
  }
53
- declare function SErrorLayout({ imageSrc, imageAlt, title, description, buttonText, imageWidth, imageHeight, maxWidth, height, py, spacing, titleVariant, descriptionVariant, buttonVariant, buttonColor, containerSx, imageContainerSx, contentSx, titleSx, descriptionSx, buttonContainerSx, buttonProps, hideImage, customActions, }: SErrorLayoutProps): React.JSX.Element;
54
+ /** A full-screen error layout component for displaying error pages with customizable content and styling. */
55
+ export declare const SErrorLayout: {
56
+ ({ imageSrc, imageAlt, title, description, buttonText, imageWidth, imageHeight, maxWidth, height, py, spacing, titleVariant, descriptionVariant, buttonVariant, buttonColor, containerSx, imageContainerSx, contentSx, titleSx, descriptionSx, buttonContainerSx, buttonProps, hideImage, customActions, }: SErrorLayoutProps): React.JSX.Element;
57
+ displayName: string;
58
+ };
54
59
  export default SErrorLayout;