@solostylist/ui-kit 1.0.174 → 1.0.176
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/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.d.ts +4 -0
- package/dist/s-chat-input/s-chat-input.js +103 -109
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/components.js +14 -12
- package/dist/theme/components/icon-button.d.ts +6191 -0
- package/dist/theme/components/icon-button.js +90 -0
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -1,44 +1,36 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "../jsx-runtime-tc70JA_2.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { C as
|
|
4
|
-
import { Dialog as
|
|
5
|
-
const
|
|
3
|
+
import { C as j } from "../Close-DOHlPcFK.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(
|
|
6
6
|
({
|
|
7
|
-
title:
|
|
8
|
-
content:
|
|
9
|
-
actions:
|
|
10
|
-
onClose:
|
|
7
|
+
title: s,
|
|
8
|
+
content: e,
|
|
9
|
+
actions: i,
|
|
10
|
+
onClose: o = () => {
|
|
11
11
|
},
|
|
12
|
-
open:
|
|
13
|
-
maxWidth:
|
|
14
|
-
useForm:
|
|
15
|
-
onSubmit:
|
|
12
|
+
open: t = !1,
|
|
13
|
+
maxWidth: l = "sm",
|
|
14
|
+
useForm: c = !1,
|
|
15
|
+
onSubmit: d = () => {
|
|
16
16
|
},
|
|
17
|
-
showClose:
|
|
17
|
+
showClose: x = !0
|
|
18
18
|
}, p) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
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 })
|
|
22
22
|
] });
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
typeof
|
|
26
|
-
|
|
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, {}) })
|
|
27
27
|
] }) }),
|
|
28
|
-
|
|
28
|
+
c ? /* @__PURE__ */ r.jsx("form", { onSubmit: d, children: a }) : a
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
|
|
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
|
-
}
|
|
32
|
+
w.displayName = "SDialog";
|
|
41
33
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
w as SDialog,
|
|
35
|
+
w as default
|
|
44
36
|
};
|
|
@@ -1,80 +1,76 @@
|
|
|
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:
|
|
1
|
+
import { j as o } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { C as p } from "../Close-DOHlPcFK.js";
|
|
4
|
+
import { Dialog as j, DialogTitle as D, Stack as v, IconButton as y, DialogContent as b, DialogActions as k, Button as d } from "@mui/material";
|
|
5
|
+
import { useDialog as w } from "../hooks/use-dialog.js";
|
|
6
|
+
import { T as m } from "../Typography-9Kg27dDw.js";
|
|
7
|
+
const f = ({
|
|
8
|
+
title: e,
|
|
9
9
|
content: n,
|
|
10
|
-
onConfirm:
|
|
10
|
+
onConfirm: s = () => {
|
|
11
11
|
},
|
|
12
|
-
onClose:
|
|
12
|
+
onClose: i = () => {
|
|
13
13
|
},
|
|
14
14
|
open: t = !1,
|
|
15
|
-
maxWidth:
|
|
15
|
+
maxWidth: a = "sm",
|
|
16
16
|
showClose: c = !0,
|
|
17
|
-
loading:
|
|
18
|
-
}) => /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
typeof
|
|
21
|
-
c && /* @__PURE__ */
|
|
17
|
+
loading: l = !1
|
|
18
|
+
}) => /* @__PURE__ */ o.jsxs(j, { fullWidth: !0, maxWidth: a, onClose: i, open: t, children: [
|
|
19
|
+
e && /* @__PURE__ */ o.jsx(D, { children: /* @__PURE__ */ o.jsxs(v, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
20
|
+
typeof e == "string" ? /* @__PURE__ */ o.jsx(m, { variant: "h5", textTransform: "capitalize", children: e }) : /* @__PURE__ */ o.jsx("div", { children: e }),
|
|
21
|
+
c && /* @__PURE__ */ o.jsx(y, { onClick: i, children: /* @__PURE__ */ o.jsx(p, {}) })
|
|
22
22
|
] }) }),
|
|
23
|
-
n && /* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
23
|
+
n && /* @__PURE__ */ o.jsx(b, { children: typeof n == "string" ? /* @__PURE__ */ o.jsx(m, { color: "text.secondary", variant: "body2", children: n }) : n }),
|
|
24
|
+
/* @__PURE__ */ o.jsx(k, { children: /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
25
|
+
/* @__PURE__ */ o.jsx(d, { onClick: i, variant: "outlined", disabled: l, children: "Cancel" }),
|
|
26
|
+
/* @__PURE__ */ o.jsx(d, { onClick: s, loading: l, children: "Confirm" })
|
|
27
27
|
] }) })
|
|
28
28
|
] });
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
const n =
|
|
29
|
+
f.displayName = "SDialogConfirm";
|
|
30
|
+
const C = r.createContext(null), E = ({ children: e }) => {
|
|
31
|
+
const n = w(), [s, i] = r.useState(!1), [t, a] = r.useState({
|
|
32
32
|
title: "",
|
|
33
33
|
content: "",
|
|
34
34
|
onConfirm: () => {
|
|
35
35
|
}
|
|
36
36
|
}), c = {
|
|
37
|
-
handleOpen:
|
|
38
|
-
(
|
|
39
|
-
const { title: h, content:
|
|
40
|
-
|
|
37
|
+
handleOpen: r.useCallback(
|
|
38
|
+
(x) => {
|
|
39
|
+
const { title: h, content: u, onConfirm: g } = x;
|
|
40
|
+
a({ title: h, content: u, onConfirm: g }), n.handleOpen();
|
|
41
41
|
},
|
|
42
42
|
[n]
|
|
43
43
|
),
|
|
44
44
|
handleClose: n.handleClose,
|
|
45
45
|
open: n.open,
|
|
46
|
-
loading:
|
|
47
|
-
setLoading:
|
|
48
|
-
},
|
|
46
|
+
loading: s,
|
|
47
|
+
setLoading: i
|
|
48
|
+
}, l = () => {
|
|
49
49
|
t.onConfirm();
|
|
50
50
|
};
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
51
|
+
return /* @__PURE__ */ o.jsxs(C.Provider, { value: c, children: [
|
|
52
|
+
/* @__PURE__ */ o.jsx(
|
|
53
|
+
f,
|
|
54
54
|
{
|
|
55
55
|
open: n.open,
|
|
56
|
-
title: t
|
|
57
|
-
content: t
|
|
56
|
+
title: t?.title,
|
|
57
|
+
content: t?.content,
|
|
58
58
|
onClose: n.handleClose,
|
|
59
|
-
onConfirm:
|
|
60
|
-
loading:
|
|
59
|
+
onConfirm: l,
|
|
60
|
+
loading: s
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
|
|
63
|
+
e
|
|
64
64
|
] });
|
|
65
|
-
},
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
65
|
+
}, O = () => {
|
|
66
|
+
const e = r.useContext(C);
|
|
67
|
+
if (!e)
|
|
68
68
|
throw new Error("useDialogConfirm must be used within a DialogConfirmProvider");
|
|
69
|
-
return
|
|
69
|
+
return e;
|
|
70
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
|
-
}
|
|
75
71
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
E as DialogConfirmProvider,
|
|
73
|
+
f as SDialogConfirm,
|
|
74
|
+
f as default,
|
|
75
|
+
O as useDialogConfirm
|
|
80
76
|
};
|
|
@@ -1,71 +1,67 @@
|
|
|
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 o } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { C as p } from "../Close-DOHlPcFK.js";
|
|
4
|
+
import { Dialog as u, DialogTitle as m, Stack as j, IconButton as C, DialogContent as f, DialogActions as D, Button as M } from "@mui/material";
|
|
5
|
+
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
+
import { T as c } from "../Typography-9Kg27dDw.js";
|
|
7
|
+
const d = ({
|
|
8
|
+
title: s,
|
|
9
9
|
content: e,
|
|
10
|
-
onClose:
|
|
10
|
+
onClose: n = () => {
|
|
11
11
|
},
|
|
12
|
-
onOk:
|
|
12
|
+
onOk: a = () => {
|
|
13
13
|
},
|
|
14
14
|
open: i = !1,
|
|
15
|
-
maxWidth:
|
|
16
|
-
showClose:
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
typeof
|
|
20
|
-
|
|
15
|
+
maxWidth: l = "sm",
|
|
16
|
+
showClose: r = !0
|
|
17
|
+
}) => /* @__PURE__ */ o.jsxs(u, { fullWidth: !0, maxWidth: l, onClose: n, open: i, children: [
|
|
18
|
+
s && /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsxs(j, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
19
|
+
typeof s == "string" ? /* @__PURE__ */ o.jsx(c, { variant: "h5", textTransform: "capitalize", children: s }) : /* @__PURE__ */ o.jsx("div", { children: s }),
|
|
20
|
+
r && /* @__PURE__ */ o.jsx(C, { onClick: n, children: /* @__PURE__ */ o.jsx(p, {}) })
|
|
21
21
|
] }) }),
|
|
22
|
-
e && /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
22
|
+
e && /* @__PURE__ */ o.jsx(f, { children: typeof e == "string" ? /* @__PURE__ */ o.jsx(c, { color: "text.secondary", variant: "body2", children: e }) : e }),
|
|
23
|
+
/* @__PURE__ */ o.jsx(D, { children: /* @__PURE__ */ o.jsx(M, { onClick: a, children: "Ok" }) })
|
|
24
24
|
] });
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const e =
|
|
25
|
+
d.displayName = "SDialogMessage";
|
|
26
|
+
const g = t.createContext(null), S = ({ children: s }) => {
|
|
27
|
+
const e = k(), [n, a] = t.useState({
|
|
28
28
|
title: "",
|
|
29
29
|
content: "",
|
|
30
30
|
onOk: e.handleClose
|
|
31
31
|
// Default to closing dialog
|
|
32
32
|
}), i = {
|
|
33
|
-
handleOpen:
|
|
34
|
-
(
|
|
35
|
-
const { title:
|
|
36
|
-
|
|
33
|
+
handleOpen: t.useCallback(
|
|
34
|
+
(l) => {
|
|
35
|
+
const { title: r, content: h, onOk: x = e.handleClose } = l;
|
|
36
|
+
a({ title: r, content: h, onOk: x }), e.handleOpen();
|
|
37
37
|
},
|
|
38
38
|
[e]
|
|
39
39
|
),
|
|
40
40
|
handleClose: e.handleClose,
|
|
41
41
|
open: e.open
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
43
|
+
return /* @__PURE__ */ o.jsxs(g.Provider, { value: i, children: [
|
|
44
|
+
/* @__PURE__ */ o.jsx(
|
|
45
|
+
d,
|
|
46
46
|
{
|
|
47
47
|
open: e.open,
|
|
48
|
-
title:
|
|
49
|
-
content:
|
|
48
|
+
title: n?.title,
|
|
49
|
+
content: n?.content,
|
|
50
50
|
onClose: e.handleClose,
|
|
51
|
-
onOk:
|
|
51
|
+
onOk: n?.onOk
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
|
|
54
|
+
s
|
|
55
55
|
] });
|
|
56
|
-
},
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
56
|
+
}, T = () => {
|
|
57
|
+
const s = t.useContext(g);
|
|
58
|
+
if (!s)
|
|
59
59
|
throw new Error("useDialogMessage must be used within a DialogMessageProvider");
|
|
60
|
-
return
|
|
60
|
+
return s;
|
|
61
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
|
-
}
|
|
66
62
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
S as DialogMessageProvider,
|
|
64
|
+
d as SDialogMessage,
|
|
65
|
+
d as default,
|
|
66
|
+
T as useDialogMessage
|
|
71
67
|
};
|
package/dist/s-empty/s-empty.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Typography as
|
|
3
|
-
const
|
|
4
|
-
|
|
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
|
-
}
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { Typography as o } from "@mui/material";
|
|
3
|
+
const r = ({ title: a }) => /* @__PURE__ */ t.jsx(o, { variant: "body2", color: "text.secondary", my: 3, children: a || "No data available." });
|
|
4
|
+
r.displayName = "SEmpty";
|
|
13
5
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
r as SEmpty,
|
|
7
|
+
r as default
|
|
16
8
|
};
|
package/dist/s-error/s-error.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as r } from "../jsx-runtime-
|
|
2
|
-
import { Stack as
|
|
3
|
-
const
|
|
1
|
+
import { j as r } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { Stack as t, Box as a, Typography as e } from "@mui/material";
|
|
3
|
+
const o = () => /* @__PURE__ */ r.jsxs(t, { alignItems: "center", gap: 2, children: [
|
|
4
4
|
/* @__PURE__ */ r.jsx(
|
|
5
|
-
|
|
5
|
+
a,
|
|
6
6
|
{
|
|
7
7
|
alt: "Internal server error",
|
|
8
8
|
component: "img",
|
|
@@ -10,19 +10,11 @@ const e = () => /* @__PURE__ */ r.jsxs(a, { 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(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." })
|
|
15
15
|
] });
|
|
16
|
-
|
|
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
|
+
o.displayName = "SError";
|
|
25
17
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
o as SError,
|
|
19
|
+
o as default
|
|
28
20
|
};
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { j as e } from "../jsx-runtime-
|
|
2
|
-
import { Box as
|
|
3
|
-
import "../s-lazy-image/
|
|
4
|
-
|
|
5
|
-
const n = ({
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { Box as r, Container as w, Stack as i, Typography as l, Button as z } from "@mui/material";
|
|
3
|
+
import D from "../s-lazy-image/s-lazy-image.js";
|
|
4
|
+
const N = ({
|
|
6
5
|
imageSrc: a,
|
|
7
|
-
imageAlt:
|
|
8
|
-
title:
|
|
9
|
-
description:
|
|
10
|
-
buttonText:
|
|
11
|
-
imageWidth:
|
|
12
|
-
imageHeight:
|
|
13
|
-
maxWidth:
|
|
6
|
+
imageAlt: o,
|
|
7
|
+
title: x,
|
|
8
|
+
description: c,
|
|
9
|
+
buttonText: n,
|
|
10
|
+
imageWidth: d = "200px",
|
|
11
|
+
imageHeight: j = "auto",
|
|
12
|
+
maxWidth: y = "lg",
|
|
14
13
|
height: h = "100vh",
|
|
15
|
-
py:
|
|
16
|
-
spacing:
|
|
17
|
-
titleVariant:
|
|
18
|
-
descriptionVariant:
|
|
19
|
-
buttonVariant:
|
|
20
|
-
buttonColor:
|
|
21
|
-
containerSx:
|
|
22
|
-
imageContainerSx:
|
|
23
|
-
contentSx:
|
|
24
|
-
titleSx:
|
|
25
|
-
descriptionSx:
|
|
26
|
-
buttonContainerSx:
|
|
27
|
-
buttonProps:
|
|
28
|
-
hideImage:
|
|
29
|
-
customActions:
|
|
14
|
+
py: p = 8,
|
|
15
|
+
spacing: f = 6,
|
|
16
|
+
titleVariant: m = "h4",
|
|
17
|
+
descriptionVariant: u = "body1",
|
|
18
|
+
buttonVariant: g = "contained",
|
|
19
|
+
buttonColor: v = "primary",
|
|
20
|
+
containerSx: C,
|
|
21
|
+
imageContainerSx: E,
|
|
22
|
+
contentSx: L,
|
|
23
|
+
titleSx: S,
|
|
24
|
+
descriptionSx: B,
|
|
25
|
+
buttonContainerSx: t,
|
|
26
|
+
buttonProps: I,
|
|
27
|
+
hideImage: k = !1,
|
|
28
|
+
customActions: s
|
|
30
29
|
}) => /* @__PURE__ */ e.jsx(
|
|
31
|
-
|
|
30
|
+
r,
|
|
32
31
|
{
|
|
33
32
|
component: "main",
|
|
34
33
|
sx: {
|
|
@@ -36,30 +35,22 @@ const n = ({
|
|
|
36
35
|
display: "flex",
|
|
37
36
|
flexDirection: "column",
|
|
38
37
|
justifyContent: "center",
|
|
39
|
-
py:
|
|
38
|
+
py: p,
|
|
40
39
|
height: h,
|
|
41
|
-
...
|
|
40
|
+
...C
|
|
42
41
|
},
|
|
43
|
-
children: /* @__PURE__ */ e.jsx(
|
|
44
|
-
!
|
|
45
|
-
/* @__PURE__ */ e.jsxs(
|
|
46
|
-
/* @__PURE__ */ e.jsx(
|
|
47
|
-
/* @__PURE__ */ e.jsx(
|
|
42
|
+
children: /* @__PURE__ */ e.jsx(w, { maxWidth: y, children: /* @__PURE__ */ e.jsxs(i, { spacing: f, children: [
|
|
43
|
+
!k && /* @__PURE__ */ e.jsx(r, { sx: { display: "flex", justifyContent: "center", ...E }, children: /* @__PURE__ */ e.jsx(D, { src: a, alt: o, width: d, height: j }) }),
|
|
44
|
+
/* @__PURE__ */ e.jsxs(i, { spacing: 1, sx: { textAlign: "center", ...L }, children: [
|
|
45
|
+
/* @__PURE__ */ e.jsx(l, { variant: m, sx: S, children: x }),
|
|
46
|
+
/* @__PURE__ */ e.jsx(l, { variant: u, color: "text.secondary", sx: B, children: c })
|
|
48
47
|
] }),
|
|
49
|
-
|
|
48
|
+
s ? /* @__PURE__ */ e.jsx(r, { sx: { display: "flex", justifyContent: "center", ...t }, children: s }) : n ? /* @__PURE__ */ e.jsx(r, { sx: { display: "flex", justifyContent: "center", ...t }, children: /* @__PURE__ */ e.jsx(z, { variant: g, color: v, ...I, children: n }) }) : null
|
|
50
49
|
] }) })
|
|
51
50
|
}
|
|
52
51
|
);
|
|
53
|
-
|
|
54
|
-
try {
|
|
55
|
-
n.displayName = "SErrorLayout", n.__docgenInfo = { description: "A full-screen error layout component for displaying error pages with customizable content and styling.", displayName: "SErrorLayout", props: { imageSrc: { defaultValue: null, description: "Source URL for the error image", name: "imageSrc", required: !0, type: { name: "string" } }, imageAlt: { defaultValue: null, description: "Alt text for the error image", name: "imageAlt", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Main error title text", name: "title", required: !0, type: { name: "string" } }, description: { defaultValue: null, description: "Error description text", name: "description", required: !0, type: { name: "ReactNode" } }, buttonText: { defaultValue: null, description: "Text for the action button. If not provided, button will not be shown", name: "buttonText", required: !1, type: { name: "string" } }, imageWidth: { defaultValue: { value: "200px" }, description: "Image width. Default: '200px'", name: "imageWidth", required: !1, type: { name: "string | number" } }, imageHeight: { defaultValue: { value: "auto" }, description: "Image height. Default: 'auto'", name: "imageHeight", required: !1, type: { name: "string | number" } }, maxWidth: { defaultValue: { value: "lg" }, description: "Container max width. Default: 'lg'", name: "maxWidth", required: !1, type: { name: 'false | "xs" | "sm" | "md" | "lg" | "xl"' } }, height: { defaultValue: { value: "100vh" }, description: "Main container height. Default: '100vh'", name: "height", required: !1, type: { name: "string | number" } }, py: { defaultValue: { value: "8" }, description: "Vertical padding. Default: 8 (64px)", name: "py", required: !1, type: { name: "string | number" } }, spacing: { defaultValue: { value: "6" }, description: "Spacing between elements. Default: 6", name: "spacing", required: !1, type: { name: "number" } }, titleVariant: { defaultValue: { value: "h4" }, description: "Title typography variant. Default: 'h4'", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, descriptionVariant: { defaultValue: { value: "body1" }, description: "Description typography variant. Default: 'body1'", name: "descriptionVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, buttonVariant: { defaultValue: { value: "contained" }, description: "Button variant. Default: 'contained'", name: "buttonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"outlined"' }, { value: '"contained"' }] } }, buttonColor: { defaultValue: { value: "primary" }, description: "Button color. Default: 'primary'", name: "buttonColor", required: !1, type: { name: "enum", value: [{ value: '"inherit"' }, { value: '"error"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"info"' }, { value: '"success"' }, { value: '"warning"' }] } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, imageContainerSx: { defaultValue: null, description: "Custom styles for the image container", name: "imageContainerSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content stack", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "Custom styles for the title", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, descriptionSx: { defaultValue: null, description: "Custom styles for the description", name: "descriptionSx", required: !1, type: { name: "SxProps<Theme>" } }, buttonContainerSx: { defaultValue: null, description: "Custom styles for the button container", name: "buttonContainerSx", required: !1, type: { name: "SxProps<Theme>" } }, buttonProps: { defaultValue: null, description: "Additional button props", name: "buttonProps", required: !1, type: { name: "Partial<ButtonProps>" } }, hideImage: { defaultValue: { value: "false" }, description: "Hide image. Default: false", name: "hideImage", required: !1, type: { name: "boolean" } }, customActions: { defaultValue: null, description: "Custom content to render instead of the button", name: "customActions", required: !1, type: { name: "ReactNode" } } } };
|
|
56
|
-
} catch {
|
|
57
|
-
}
|
|
58
|
-
try {
|
|
59
|
-
serrorlayout.displayName = "serrorlayout", serrorlayout.__docgenInfo = { description: "A full-screen error layout component for displaying error pages with customizable content and styling.", displayName: "serrorlayout", props: { imageSrc: { defaultValue: null, description: "Source URL for the error image", name: "imageSrc", required: !0, type: { name: "string" } }, imageAlt: { defaultValue: null, description: "Alt text for the error image", name: "imageAlt", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Main error title text", name: "title", required: !0, type: { name: "string" } }, description: { defaultValue: null, description: "Error description text", name: "description", required: !0, type: { name: "ReactNode" } }, buttonText: { defaultValue: null, description: "Text for the action button. If not provided, button will not be shown", name: "buttonText", required: !1, type: { name: "string" } }, imageWidth: { defaultValue: { value: "200px" }, description: "Image width. Default: '200px'", name: "imageWidth", required: !1, type: { name: "string | number" } }, imageHeight: { defaultValue: { value: "auto" }, description: "Image height. Default: 'auto'", name: "imageHeight", required: !1, type: { name: "string | number" } }, maxWidth: { defaultValue: { value: "lg" }, description: "Container max width. Default: 'lg'", name: "maxWidth", required: !1, type: { name: 'false | "xs" | "sm" | "md" | "lg" | "xl"' } }, height: { defaultValue: { value: "100vh" }, description: "Main container height. Default: '100vh'", name: "height", required: !1, type: { name: "string | number" } }, py: { defaultValue: { value: "8" }, description: "Vertical padding. Default: 8 (64px)", name: "py", required: !1, type: { name: "string | number" } }, spacing: { defaultValue: { value: "6" }, description: "Spacing between elements. Default: 6", name: "spacing", required: !1, type: { name: "number" } }, titleVariant: { defaultValue: { value: "h4" }, description: "Title typography variant. Default: 'h4'", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, descriptionVariant: { defaultValue: { value: "body1" }, description: "Description typography variant. Default: 'body1'", name: "descriptionVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, buttonVariant: { defaultValue: { value: "contained" }, description: "Button variant. Default: 'contained'", name: "buttonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"outlined"' }, { value: '"contained"' }] } }, buttonColor: { defaultValue: { value: "primary" }, description: "Button color. Default: 'primary'", name: "buttonColor", required: !1, type: { name: "enum", value: [{ value: '"inherit"' }, { value: '"error"' }, { value: '"primary"' }, { value: '"secondary"' }, { value: '"info"' }, { value: '"success"' }, { value: '"warning"' }] } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, imageContainerSx: { defaultValue: null, description: "Custom styles for the image container", name: "imageContainerSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content stack", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "Custom styles for the title", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, descriptionSx: { defaultValue: null, description: "Custom styles for the description", name: "descriptionSx", required: !1, type: { name: "SxProps<Theme>" } }, buttonContainerSx: { defaultValue: null, description: "Custom styles for the button container", name: "buttonContainerSx", required: !1, type: { name: "SxProps<Theme>" } }, buttonProps: { defaultValue: null, description: "Additional button props", name: "buttonProps", required: !1, type: { name: "Partial<ButtonProps>" } }, hideImage: { defaultValue: { value: "false" }, description: "Hide image. Default: false", name: "hideImage", required: !1, type: { name: "boolean" } }, customActions: { defaultValue: null, description: "Custom content to render instead of the button", name: "customActions", required: !1, type: { name: "ReactNode" } } } };
|
|
60
|
-
} catch {
|
|
61
|
-
}
|
|
52
|
+
N.displayName = "SErrorLayout";
|
|
62
53
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
N as SErrorLayout,
|
|
55
|
+
N as default
|
|
65
56
|
};
|