@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.
- package/dist/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +182 -172
- package/dist/s-accordion/index.js +2 -2
- package/dist/s-accordion/s-accordion.d.ts +17 -1
- package/dist/s-accordion/s-accordion.js +252 -238
- package/dist/s-action-overlay/index.js +1 -1
- package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
- package/dist/s-action-overlay/s-action-overlay.js +67 -55
- package/dist/s-ai-tool-bar/index.d.ts +2 -0
- package/dist/s-ai-tool-bar/index.js +3 -2
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +43 -22
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +336 -255
- package/dist/s-autocomplete/index.js +2 -2
- package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
- package/dist/s-autocomplete/s-autocomplete.js +25 -17
- package/dist/s-avatar/index.js +2 -2
- package/dist/s-avatar/s-avatar.d.ts +16 -1
- package/dist/s-avatar/s-avatar.js +23 -10
- package/dist/s-blur-text/index.js +2 -2
- package/dist/s-blur-text/s-blur-text.d.ts +4 -13
- package/dist/s-blur-text/s-blur-text.js +57 -51
- package/dist/s-breadcrumbs/index.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
- package/dist/s-button/index.js +2 -2
- package/dist/s-button/s-button.d.ts +7 -1
- package/dist/s-button/s-button.js +15 -5
- package/dist/s-button-link/index.js +2 -2
- package/dist/s-button-link/s-button-link.d.ts +12 -26
- package/dist/s-button-link/s-button-link.js +36 -26
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +11 -1
- package/dist/s-carousel/s-carousel.js +233 -223
- package/dist/s-category-card/index.js +2 -2
- package/dist/s-category-card/s-category-card.d.ts +28 -1
- package/dist/s-category-card/s-category-card.js +77 -58
- package/dist/s-chat-input/index.js +2 -2
- package/dist/s-chat-input/s-chat-input.d.ts +12 -1
- package/dist/s-chat-input/s-chat-input.js +92 -82
- package/dist/s-chat-message/index.js +2 -2
- package/dist/s-chat-message/s-chat-message.d.ts +22 -1
- package/dist/s-chat-message/s-chat-message.js +144 -133
- package/dist/s-checkbox/index.js +2 -2
- package/dist/s-checkbox/s-checkbox.d.ts +2 -15
- package/dist/s-checkbox/s-checkbox.js +20 -10
- package/dist/s-chip/index.js +2 -2
- package/dist/s-chip/s-chip.d.ts +7 -1
- package/dist/s-chip/s-chip.js +15 -5
- package/dist/s-chips/index.js +2 -2
- package/dist/s-chips/s-chips.d.ts +5 -18
- package/dist/s-chips/s-chips.js +56 -41
- package/dist/s-comment-message/index.js +2 -2
- package/dist/s-comment-message/s-comment-message.d.ts +26 -1
- package/dist/s-comment-message/s-comment-message.js +95 -89
- package/dist/s-copyable-text/index.js +1 -1
- package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
- package/dist/s-copyable-text/s-copyable-text.js +31 -21
- package/dist/s-countdown/index.d.ts +3 -2
- package/dist/s-countdown/index.js +4 -3
- package/dist/s-countdown/s-count-box.d.ts +39 -0
- package/dist/s-countdown/s-count-box.js +112 -0
- package/dist/s-countdown/s-count-down.d.ts +6 -50
- package/dist/s-countdown/s-count-down.js +110 -175
- package/dist/s-data-table/index.js +2 -2
- package/dist/s-data-table/s-data-table.d.ts +9 -65
- package/dist/s-data-table/s-data-table.js +381 -371
- package/dist/s-date-picker/index.js +2 -2
- package/dist/s-date-picker/s-date-picker.d.ts +6 -17
- package/dist/s-date-picker/s-date-picker.js +124 -107
- package/dist/s-datetime-picker/index.js +2 -2
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
- package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
- package/dist/s-dialog/index.js +2 -2
- package/dist/s-dialog/s-dialog.d.ts +3 -16
- package/dist/s-dialog/s-dialog.js +32 -23
- package/dist/s-dialog-confirm/index.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
- package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
- package/dist/s-dialog-message/index.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
- package/dist/s-dialog-message/s-dialog-message.js +45 -38
- package/dist/s-empty/index.js +2 -2
- package/dist/s-empty/s-empty.d.ts +5 -20
- package/dist/s-empty/s-empty.js +14 -4
- package/dist/s-error/index.js +2 -2
- package/dist/s-error/s-error.d.ts +5 -20
- package/dist/s-error/s-error.js +16 -6
- package/dist/s-error-layout/index.js +2 -2
- package/dist/s-error-layout/s-error-layout.d.ts +6 -1
- package/dist/s-error-layout/s-error-layout.js +60 -51
- package/dist/s-file-dropzone/index.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
- package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
- package/dist/s-file-icon/index.js +2 -2
- package/dist/s-file-icon/s-file-icon.d.ts +5 -25
- package/dist/s-file-icon/s-file-icon.js +14 -8
- package/dist/s-flex-box/index.js +2 -2
- package/dist/s-flex-box/s-flex-box.d.ts +10 -1
- package/dist/s-flex-box/s-flex-box.js +14 -4
- package/dist/s-form/index.js +2 -2
- package/dist/s-form/s-form.d.ts +5 -14
- package/dist/s-form/s-form.js +19 -9
- package/dist/s-gallery/index.js +33 -3
- package/dist/s-gallery/s-gallery.d.ts +3 -36
- package/dist/s-gallery/s-gallery.js +108 -78
- package/dist/s-glow-button/s-glow-button.d.ts +6 -42
- package/dist/s-glow-button/s-glow-button.js +29 -47
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/index.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
- package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
- package/dist/s-i18n-provider/index.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
- package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
- package/dist/s-icon-button/index.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -19
- package/dist/s-icon-button/s-icon-button.js +14 -4
- package/dist/s-image-comparison/s-image-comparison.js +50 -45
- package/dist/s-image-modal/index.js +3 -3
- package/dist/s-image-modal/s-image-modal.d.ts +4 -20
- package/dist/s-image-modal/s-image-modal.js +150 -135
- package/dist/s-item-not-found/index.js +2 -2
- package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
- package/dist/s-item-not-found/s-item-not-found.js +21 -10
- package/dist/s-label/index.js +2 -2
- package/dist/s-label/s-label.d.ts +9 -25
- package/dist/s-label/s-label.js +19 -9
- package/dist/s-language-switcher/index.js +3 -3
- package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
- package/dist/s-language-switcher/s-language-switcher.js +137 -115
- package/dist/s-lazy-image/index.js +10 -2
- package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
- package/dist/s-lazy-image/s-lazy-image.js +53 -58
- package/dist/s-localization-provider/index.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
- package/dist/s-localization-provider/s-localization-provider.js +157 -149
- package/dist/s-moving-border/index.js +2 -2
- package/dist/s-moving-border/s-moving-border.d.ts +3 -33
- package/dist/s-moving-border/s-moving-border.js +65 -55
- package/dist/s-multi-select/index.js +2 -2
- package/dist/s-multi-select/s-multi-select.d.ts +5 -15
- package/dist/s-multi-select/s-multi-select.js +54 -45
- package/dist/s-no-ssr/index.js +2 -2
- package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
- package/dist/s-no-ssr/s-no-ssr.js +21 -11
- package/dist/s-overlay-scrollbar/index.js +2 -2
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
- package/dist/s-pagination/index.js +2 -2
- package/dist/s-pagination/s-pagination.d.ts +5 -23
- package/dist/s-pagination/s-pagination.js +17 -11
- package/dist/s-pixel-reveal/index.d.ts +2 -0
- package/dist/s-pixel-reveal/index.js +4 -0
- package/dist/s-pixel-reveal/package.json +5 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +27 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.js +156 -0
- package/dist/s-radial-pulse-animate/index.js +2 -2
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
- package/dist/s-rating/index.js +2 -2
- package/dist/s-rating/s-rating.d.ts +7 -1
- package/dist/s-rating/s-rating.js +15 -5
- package/dist/s-review/index.js +2 -2
- package/dist/s-review/s-review.d.ts +25 -1
- package/dist/s-review/s-review.js +104 -97
- package/dist/s-scroll-reveal/index.js +2 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
- package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
- package/dist/s-scroll-to-top/index.js +2 -2
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
- package/dist/s-select/index.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -22
- package/dist/s-select/s-select.js +76 -72
- package/dist/s-select-list/index.js +2 -2
- package/dist/s-select-list/s-select-list.d.ts +16 -19
- package/dist/s-select-list/s-select-list.js +33 -28
- package/dist/s-skeleton/index.js +2 -2
- package/dist/s-skeleton/s-skeleton.d.ts +6 -22
- package/dist/s-skeleton/s-skeleton.js +28 -18
- package/dist/s-snackbar-message/index.js +4 -4
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
- package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
- package/dist/s-spotlight-cursor/index.js +2 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
- package/dist/s-stripe/index.d.ts +4 -1
- package/dist/s-stripe/index.js +7 -4
- package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
- package/dist/s-stripe/s-stripe-cvc.js +15 -0
- package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
- package/dist/s-stripe/s-stripe-expiry.js +15 -0
- package/dist/s-stripe/s-stripe-number.d.ts +8 -0
- package/dist/s-stripe/s-stripe-number.js +15 -0
- package/dist/s-stripe/s-stripe.d.ts +6 -85
- package/dist/s-stripe/s-stripe.js +24 -27
- package/dist/s-stripe/stripe-input.js +22 -18
- package/dist/s-tabs/index.js +6 -6
- package/dist/s-tabs/s-tab-panel.d.ts +11 -1
- package/dist/s-tabs/s-tab-panel.js +25 -16
- package/dist/s-tabs/s-tab.js +9 -5
- package/dist/s-tabs/s-tabs.d.ts +24 -3
- package/dist/s-tabs/s-tabs.js +34 -25
- package/dist/s-text-editor/index.js +3 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
- package/dist/s-text-editor/s-text-editor.d.ts +13 -11
- package/dist/s-text-editor/s-text-editor.js +44 -30
- package/dist/s-text-field/index.js +2 -2
- package/dist/s-text-field/s-text-field.d.ts +6 -15
- package/dist/s-text-field/s-text-field.js +38 -28
- package/dist/s-text-shimmer/index.js +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
- package/dist/s-text-truncation/index.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
- package/dist/s-text-truncation/s-text-truncation.js +34 -20
- package/dist/s-theme-demo/s-theme-demo.js +238 -223
- package/dist/s-theme-provider/index.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
- package/dist/s-theme-provider/s-theme-provider.js +44 -34
- package/dist/s-theme-switch/s-theme-switch.js +23 -19
- package/dist/s-tip/index.js +2 -2
- package/dist/s-tip/s-tip.d.ts +5 -22
- package/dist/s-tip/s-tip.js +22 -12
- package/dist/s-two-pane-layout/index.js +10 -2
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
- package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
- package/dist/s-typewriter-text/index.js +2 -2
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
- package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
- package/dist/s-zoom-image/index.js +10 -2
- package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
- package/dist/s-zoom-image/s-zoom-image.js +62 -52
- package/dist/theme/components/alert.d.ts +1440 -1440
- package/dist/theme/components/button.d.ts +2156 -2156
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
- package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
- package/package.json +10 -4
package/dist/s-dialog/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Breakpoint } from '@mui/material';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* Props
|
|
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
|
-
*
|
|
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
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { C as
|
|
4
|
-
import { Dialog as
|
|
5
|
-
const
|
|
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:
|
|
8
|
-
content:
|
|
9
|
-
actions:
|
|
10
|
-
onClose:
|
|
7
|
+
title: a,
|
|
8
|
+
content: t,
|
|
9
|
+
actions: l,
|
|
10
|
+
onClose: n = () => {
|
|
11
11
|
},
|
|
12
|
-
open:
|
|
13
|
-
maxWidth:
|
|
14
|
-
useForm:
|
|
15
|
-
onSubmit:
|
|
12
|
+
open: s = !1,
|
|
13
|
+
maxWidth: d = "sm",
|
|
14
|
+
useForm: u = !1,
|
|
15
|
+
onSubmit: m = () => {
|
|
16
16
|
},
|
|
17
|
-
showClose:
|
|
17
|
+
showClose: c = !0
|
|
18
18
|
}, p) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
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__ */
|
|
24
|
-
|
|
25
|
-
typeof
|
|
26
|
-
|
|
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
|
-
|
|
28
|
+
u ? /* @__PURE__ */ e.jsx("form", { onSubmit: m, children: i }) : i
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
|
|
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
|
-
|
|
42
|
+
o as SDialog,
|
|
43
|
+
o as default
|
|
35
44
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DialogConfirmProvider as
|
|
1
|
+
import { DialogConfirmProvider as r, SDialogConfirm as a, useDialogConfirm as f } from "./s-dialog-confirm.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
*
|
|
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:
|
|
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
|
|
2
|
-
import * as
|
|
3
|
-
import { C as
|
|
4
|
-
import { Dialog as
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import { T as m } from "../Typography-
|
|
7
|
-
const
|
|
8
|
-
title:
|
|
9
|
-
content:
|
|
10
|
-
onConfirm:
|
|
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:
|
|
12
|
+
onClose: a = () => {
|
|
13
13
|
},
|
|
14
14
|
open: t = !1,
|
|
15
|
-
maxWidth:
|
|
15
|
+
maxWidth: d = "sm",
|
|
16
16
|
showClose: c = !0,
|
|
17
|
-
loading:
|
|
18
|
-
}) => /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
typeof
|
|
21
|
-
c && /* @__PURE__ */
|
|
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
|
-
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
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
|
-
] })
|
|
29
|
-
|
|
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:
|
|
36
|
-
(
|
|
37
|
-
const { title:
|
|
38
|
-
|
|
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
|
-
[
|
|
42
|
+
[n]
|
|
41
43
|
),
|
|
42
|
-
handleClose:
|
|
43
|
-
open:
|
|
44
|
-
loading:
|
|
45
|
-
setLoading:
|
|
46
|
-
},
|
|
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__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
51
|
+
return /* @__PURE__ */ e.jsxs(f.Provider, { value: c, children: [
|
|
52
|
+
/* @__PURE__ */ e.jsx(
|
|
53
|
+
s,
|
|
52
54
|
{
|
|
53
|
-
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:
|
|
57
|
-
onConfirm:
|
|
58
|
-
loading:
|
|
58
|
+
onClose: n.handleClose,
|
|
59
|
+
onConfirm: r,
|
|
60
|
+
loading: l
|
|
59
61
|
}
|
|
60
62
|
),
|
|
61
|
-
|
|
63
|
+
o
|
|
62
64
|
] });
|
|
63
|
-
},
|
|
64
|
-
const
|
|
65
|
-
if (!
|
|
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
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
|
1
|
+
import { DialogMessageProvider as s, SDialogMessage as g, useDialogMessage as o } from "./s-dialog-message.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
2
|
-
import * as
|
|
3
|
-
import { C as
|
|
4
|
-
import { Dialog as
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import { T as
|
|
7
|
-
const
|
|
8
|
-
title:
|
|
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:
|
|
10
|
+
onClose: a = () => {
|
|
11
11
|
},
|
|
12
|
-
onOk:
|
|
12
|
+
onOk: s = () => {
|
|
13
13
|
},
|
|
14
14
|
open: i = !1,
|
|
15
|
-
maxWidth:
|
|
16
|
-
showClose:
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
typeof
|
|
20
|
-
|
|
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__ */
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
] })
|
|
25
|
-
|
|
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:
|
|
32
|
-
(
|
|
33
|
-
const { title:
|
|
34
|
-
|
|
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__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
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:
|
|
47
|
-
content:
|
|
48
|
+
title: a == null ? void 0 : a.title,
|
|
49
|
+
content: a == null ? void 0 : a.content,
|
|
48
50
|
onClose: e.handleClose,
|
|
49
|
-
onOk:
|
|
51
|
+
onOk: a == null ? void 0 : a.onOk
|
|
50
52
|
}
|
|
51
53
|
),
|
|
52
|
-
|
|
54
|
+
o
|
|
53
55
|
] });
|
|
54
|
-
},
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
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
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
M as DialogMessageProvider,
|
|
68
|
+
l as SDialogMessage,
|
|
69
|
+
l as default,
|
|
70
|
+
V as useDialogMessage
|
|
64
71
|
};
|
package/dist/s-empty/index.js
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
package/dist/s-empty/s-empty.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Typography as
|
|
3
|
-
const
|
|
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
|
-
|
|
14
|
+
e as SEmpty,
|
|
15
|
+
e as default
|
|
6
16
|
};
|
package/dist/s-error/index.js
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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;
|
package/dist/s-error/s-error.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
-
import { Stack as
|
|
3
|
-
const
|
|
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
|
-
|
|
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(
|
|
14
|
-
/* @__PURE__ */ r.jsx(
|
|
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
|
-
|
|
26
|
+
e as SError,
|
|
27
|
+
e as default
|
|
18
28
|
};
|
|
@@ -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
|
-
|
|
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;
|