@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,111 +1,110 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { motion as
|
|
5
|
-
import "../
|
|
6
|
-
import
|
|
7
|
-
import { C as
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
s,
|
|
1
|
+
import { j as i } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as E, useEffect as j } from "react";
|
|
3
|
+
import { Modal as R, Box as a, Paper as g, Typography as k, IconButton as m, Stack as L } from "@mui/material";
|
|
4
|
+
import { motion as b, AnimatePresence as A } from "framer-motion";
|
|
5
|
+
import { C as D } from "../Close-DOHlPcFK.js";
|
|
6
|
+
import { C as F } from "../ChevronLeft-6gdh4lRt.js";
|
|
7
|
+
import { C as N } from "../ChevronRight-CC3l-wPC.js";
|
|
8
|
+
import T from "../s-lazy-image/s-lazy-image.js";
|
|
9
|
+
const w = ({ item: s, onClick: d, style: l = {}, objectFit: e = "contain", disableVideoControls: r = !1 }) => s.type === "video" ? /* @__PURE__ */ i.jsx(
|
|
10
|
+
a,
|
|
12
11
|
{
|
|
13
12
|
component: "video",
|
|
14
|
-
onClick:
|
|
15
|
-
controls: !
|
|
13
|
+
onClick: d,
|
|
14
|
+
controls: !r,
|
|
16
15
|
sx: {
|
|
17
16
|
width: "100%",
|
|
18
17
|
height: "100%",
|
|
19
|
-
objectFit:
|
|
18
|
+
objectFit: e,
|
|
20
19
|
bgcolor: "background.paper",
|
|
21
|
-
...
|
|
20
|
+
...l
|
|
22
21
|
},
|
|
23
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ i.jsx("source", { src: s.url, type: "video/mp4" })
|
|
24
23
|
}
|
|
25
|
-
) : /* @__PURE__ */
|
|
26
|
-
|
|
24
|
+
) : /* @__PURE__ */ i.jsx(
|
|
25
|
+
T,
|
|
27
26
|
{
|
|
28
|
-
src:
|
|
29
|
-
alt:
|
|
30
|
-
onClick:
|
|
27
|
+
src: s.url,
|
|
28
|
+
alt: s.title || "",
|
|
29
|
+
onClick: d,
|
|
31
30
|
style: {
|
|
32
31
|
width: "100%",
|
|
33
32
|
height: "100%",
|
|
34
|
-
objectFit:
|
|
33
|
+
objectFit: e,
|
|
35
34
|
backgroundColor: "background.paper",
|
|
36
|
-
...
|
|
35
|
+
...l
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
),
|
|
40
|
-
selectedItem:
|
|
41
|
-
isOpen:
|
|
42
|
-
onClose:
|
|
43
|
-
onItemChange:
|
|
44
|
-
mediaItems:
|
|
45
|
-
renderMediaItem:
|
|
46
|
-
showNavigation:
|
|
47
|
-
showThumbnailDock:
|
|
48
|
-
showCounter:
|
|
49
|
-
modalSx:
|
|
38
|
+
), $ = ({
|
|
39
|
+
selectedItem: s,
|
|
40
|
+
isOpen: d,
|
|
41
|
+
onClose: l,
|
|
42
|
+
onItemChange: e,
|
|
43
|
+
mediaItems: r = [],
|
|
44
|
+
renderMediaItem: f,
|
|
45
|
+
showNavigation: z = !0,
|
|
46
|
+
showThumbnailDock: I = !0,
|
|
47
|
+
showCounter: S = !0,
|
|
48
|
+
modalSx: P = {}
|
|
50
49
|
}) => {
|
|
51
|
-
const [
|
|
50
|
+
const [C, p] = E(s || null), t = s || C;
|
|
52
51
|
j(() => {
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
|
|
52
|
+
s && p(s);
|
|
53
|
+
}, [s]);
|
|
54
|
+
const c = z && r.length > 1 && t, n = t ? r.findIndex((o) => o.id === t.id) : -1, h = r.length, v = () => {
|
|
55
|
+
if (c && n > 0) {
|
|
56
|
+
const o = r[n - 1];
|
|
57
|
+
e ? e(o) : p(o);
|
|
59
58
|
}
|
|
60
|
-
},
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
|
|
59
|
+
}, y = () => {
|
|
60
|
+
if (c && n < h - 1) {
|
|
61
|
+
const o = r[n + 1];
|
|
62
|
+
e ? e(o) : p(o);
|
|
64
63
|
}
|
|
65
64
|
};
|
|
66
65
|
return j(() => {
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
switch (
|
|
66
|
+
const o = (u) => {
|
|
67
|
+
if (d)
|
|
68
|
+
switch (u.key) {
|
|
70
69
|
case "ArrowLeft":
|
|
71
|
-
|
|
70
|
+
v();
|
|
72
71
|
break;
|
|
73
72
|
case "ArrowRight":
|
|
74
|
-
|
|
73
|
+
y();
|
|
75
74
|
break;
|
|
76
75
|
case "Escape":
|
|
77
|
-
|
|
76
|
+
l();
|
|
78
77
|
break;
|
|
79
78
|
}
|
|
80
79
|
};
|
|
81
|
-
return document.addEventListener("keydown",
|
|
82
|
-
}, [
|
|
83
|
-
|
|
80
|
+
return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
|
|
81
|
+
}, [d, n, h, c]), !d || !t ? null : /* @__PURE__ */ i.jsx(
|
|
82
|
+
R,
|
|
84
83
|
{
|
|
85
|
-
open:
|
|
86
|
-
onClose:
|
|
84
|
+
open: d,
|
|
85
|
+
onClose: l,
|
|
87
86
|
sx: {
|
|
88
|
-
zIndex: (
|
|
89
|
-
...
|
|
87
|
+
zIndex: (o) => o.zIndex.modal + 100,
|
|
88
|
+
...P
|
|
90
89
|
},
|
|
91
90
|
slotProps: {
|
|
92
91
|
backdrop: {
|
|
93
92
|
sx: {
|
|
94
93
|
backdropFilter: "blur(8px)",
|
|
95
|
-
zIndex: (
|
|
94
|
+
zIndex: (o) => o.zIndex.modal + 99
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
},
|
|
99
|
-
children: /* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
98
|
+
children: /* @__PURE__ */ i.jsxs(a, { children: [
|
|
99
|
+
/* @__PURE__ */ i.jsx(
|
|
100
|
+
b.div,
|
|
102
101
|
{
|
|
103
102
|
initial: { scale: 0.98 },
|
|
104
103
|
animate: { scale: 1 },
|
|
105
104
|
exit: { scale: 0.98 },
|
|
106
105
|
transition: { type: "spring", stiffness: 400, damping: 30 },
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
-
|
|
106
|
+
children: /* @__PURE__ */ i.jsxs(
|
|
107
|
+
g,
|
|
109
108
|
{
|
|
110
109
|
sx: {
|
|
111
110
|
position: "fixed",
|
|
@@ -114,19 +113,19 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
114
113
|
minHeight: "100vh",
|
|
115
114
|
borderRadius: 0,
|
|
116
115
|
overflow: "hidden",
|
|
117
|
-
zIndex: (
|
|
116
|
+
zIndex: (o) => o.zIndex.modal + 101
|
|
118
117
|
},
|
|
119
118
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
|
|
119
|
+
/* @__PURE__ */ i.jsx(
|
|
120
|
+
a,
|
|
122
121
|
{
|
|
123
122
|
sx: {
|
|
124
123
|
height: "100%",
|
|
125
124
|
display: "flex",
|
|
126
125
|
flexDirection: "column"
|
|
127
126
|
},
|
|
128
|
-
children: /* @__PURE__ */
|
|
129
|
-
|
|
127
|
+
children: /* @__PURE__ */ i.jsx(
|
|
128
|
+
a,
|
|
130
129
|
{
|
|
131
130
|
sx: {
|
|
132
131
|
flex: 1,
|
|
@@ -136,8 +135,8 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
136
135
|
justifyContent: "center",
|
|
137
136
|
bgcolor: "background.default"
|
|
138
137
|
},
|
|
139
|
-
children: /* @__PURE__ */
|
|
140
|
-
|
|
138
|
+
children: /* @__PURE__ */ i.jsx(A, { mode: "wait", children: /* @__PURE__ */ i.jsx(
|
|
139
|
+
b.div,
|
|
141
140
|
{
|
|
142
141
|
style: { position: "relative" },
|
|
143
142
|
initial: { y: 20, scale: 0.97 },
|
|
@@ -147,10 +146,10 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
147
146
|
transition: { type: "spring", stiffness: 500, damping: 30, mass: 0.5 }
|
|
148
147
|
},
|
|
149
148
|
exit: { y: 20, scale: 0.97, transition: { duration: 0.15 } },
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
-
|
|
149
|
+
children: /* @__PURE__ */ i.jsxs(
|
|
150
|
+
g,
|
|
152
151
|
{
|
|
153
|
-
onClick: (
|
|
152
|
+
onClick: (o) => o.stopPropagation(),
|
|
154
153
|
sx: {
|
|
155
154
|
position: "relative",
|
|
156
155
|
width: "100%",
|
|
@@ -161,9 +160,9 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
161
160
|
overflow: "hidden"
|
|
162
161
|
},
|
|
163
162
|
children: [
|
|
164
|
-
|
|
165
|
-
(
|
|
166
|
-
|
|
163
|
+
f ? f(t) : /* @__PURE__ */ i.jsx(w, { item: t }),
|
|
164
|
+
(t.title || t.desc) && /* @__PURE__ */ i.jsxs(
|
|
165
|
+
a,
|
|
167
166
|
{
|
|
168
167
|
sx: {
|
|
169
168
|
position: "absolute",
|
|
@@ -171,12 +170,12 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
171
170
|
right: 0,
|
|
172
171
|
bottom: 0,
|
|
173
172
|
p: { xs: 1.5, sm: 2, md: 3 },
|
|
174
|
-
background: (
|
|
173
|
+
background: (o) => `linear-gradient(to top, ${(o.vars || o).palette.background.paper}, transparent)`
|
|
175
174
|
},
|
|
176
|
-
onClick: (
|
|
175
|
+
onClick: (o) => o.stopPropagation(),
|
|
177
176
|
children: [
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
t.title && /* @__PURE__ */ i.jsx(k, { variant: "h6", sx: { fontWeight: 600, fontSize: { xs: 14, sm: 18, md: 20 } }, children: t.title }),
|
|
178
|
+
t.desc && /* @__PURE__ */ i.jsx(k, { variant: "body2", sx: { opacity: 0.8, mt: 0.5 }, children: t.desc })
|
|
180
179
|
]
|
|
181
180
|
}
|
|
182
181
|
)
|
|
@@ -184,87 +183,87 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
184
183
|
}
|
|
185
184
|
)
|
|
186
185
|
},
|
|
187
|
-
|
|
186
|
+
t.id
|
|
188
187
|
) })
|
|
189
188
|
}
|
|
190
189
|
)
|
|
191
190
|
}
|
|
192
191
|
),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
|
|
192
|
+
/* @__PURE__ */ i.jsx(
|
|
193
|
+
m,
|
|
195
194
|
{
|
|
196
195
|
"aria-label": "Close",
|
|
197
|
-
onClick:
|
|
196
|
+
onClick: l,
|
|
198
197
|
sx: {
|
|
199
198
|
position: "absolute",
|
|
200
199
|
top: { xs: 8, sm: 10, md: 12 },
|
|
201
200
|
right: { xs: 8, sm: 10, md: 12 },
|
|
202
|
-
zIndex: (
|
|
201
|
+
zIndex: (o) => o.zIndex.modal + 102
|
|
203
202
|
},
|
|
204
|
-
children: /* @__PURE__ */
|
|
203
|
+
children: /* @__PURE__ */ i.jsx(D, {})
|
|
205
204
|
}
|
|
206
205
|
),
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
S && c && /* @__PURE__ */ i.jsxs(
|
|
207
|
+
a,
|
|
209
208
|
{
|
|
210
209
|
sx: {
|
|
211
210
|
position: "absolute",
|
|
212
211
|
top: { xs: 8, sm: 10, md: 12 },
|
|
213
212
|
left: { xs: 8, sm: 10, md: 12 },
|
|
214
|
-
zIndex: (
|
|
213
|
+
zIndex: (o) => o.zIndex.modal + 102,
|
|
215
214
|
padding: 1,
|
|
216
215
|
px: 2,
|
|
217
216
|
fontSize: { xs: 14, sm: 16 },
|
|
218
217
|
color: "text.primary"
|
|
219
218
|
},
|
|
220
219
|
children: [
|
|
221
|
-
|
|
220
|
+
n + 1,
|
|
222
221
|
" / ",
|
|
223
|
-
|
|
222
|
+
h
|
|
224
223
|
]
|
|
225
224
|
}
|
|
226
225
|
),
|
|
227
|
-
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
|
|
226
|
+
c && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
227
|
+
/* @__PURE__ */ i.jsx(
|
|
228
|
+
m,
|
|
230
229
|
{
|
|
231
230
|
"aria-label": "Previous image",
|
|
232
|
-
onClick: (
|
|
233
|
-
|
|
231
|
+
onClick: (o) => {
|
|
232
|
+
o.stopPropagation(), v();
|
|
234
233
|
},
|
|
235
|
-
disabled:
|
|
234
|
+
disabled: n === 0,
|
|
236
235
|
sx: {
|
|
237
236
|
position: "absolute",
|
|
238
237
|
left: { xs: 8, sm: 10, md: 12 },
|
|
239
238
|
top: "50%",
|
|
240
239
|
transform: "translateY(-50%)",
|
|
241
|
-
zIndex: (
|
|
240
|
+
zIndex: (o) => o.zIndex.modal + 102,
|
|
242
241
|
"&:disabled": {
|
|
243
242
|
opacity: 0.5
|
|
244
243
|
}
|
|
245
244
|
},
|
|
246
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ i.jsx(F, {})
|
|
247
246
|
}
|
|
248
247
|
),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
|
|
248
|
+
/* @__PURE__ */ i.jsx(
|
|
249
|
+
m,
|
|
251
250
|
{
|
|
252
251
|
"aria-label": "Next image",
|
|
253
|
-
onClick: (
|
|
254
|
-
|
|
252
|
+
onClick: (o) => {
|
|
253
|
+
o.stopPropagation(), y();
|
|
255
254
|
},
|
|
256
|
-
disabled:
|
|
255
|
+
disabled: n === h - 1,
|
|
257
256
|
sx: {
|
|
258
257
|
position: "absolute",
|
|
259
258
|
right: { xs: 8, sm: 10, md: 12 },
|
|
260
259
|
top: "50%",
|
|
261
260
|
transform: "translateY(-50%)",
|
|
262
|
-
zIndex: (
|
|
261
|
+
zIndex: (o) => o.zIndex.modal + 102,
|
|
263
262
|
"&:disabled": {
|
|
264
263
|
opacity: 0.5
|
|
265
264
|
}
|
|
266
265
|
},
|
|
267
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ i.jsx(N, {})
|
|
268
267
|
}
|
|
269
268
|
)
|
|
270
269
|
] })
|
|
@@ -273,8 +272,8 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
273
272
|
)
|
|
274
273
|
}
|
|
275
274
|
),
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
I && c && r.length > 1 && /* @__PURE__ */ i.jsx(
|
|
276
|
+
a,
|
|
278
277
|
{
|
|
279
278
|
sx: {
|
|
280
279
|
position: "fixed",
|
|
@@ -283,8 +282,8 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
283
282
|
bottom: 16,
|
|
284
283
|
transform: "translateX(-50%)"
|
|
285
284
|
},
|
|
286
|
-
children: /* @__PURE__ */
|
|
287
|
-
|
|
285
|
+
children: /* @__PURE__ */ i.jsx(
|
|
286
|
+
g,
|
|
288
287
|
{
|
|
289
288
|
sx: {
|
|
290
289
|
position: "relative",
|
|
@@ -296,11 +295,11 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
296
295
|
px: 1.5,
|
|
297
296
|
py: 1
|
|
298
297
|
},
|
|
299
|
-
children: /* @__PURE__ */
|
|
300
|
-
|
|
298
|
+
children: /* @__PURE__ */ i.jsx(L, { direction: "row", alignItems: "center", spacing: -1.5, children: r.map((o, u) => /* @__PURE__ */ i.jsxs(
|
|
299
|
+
b.div,
|
|
301
300
|
{
|
|
302
|
-
onClick: (
|
|
303
|
-
|
|
301
|
+
onClick: (x) => {
|
|
302
|
+
x.stopPropagation(), e ? e(o) : p(o);
|
|
304
303
|
},
|
|
305
304
|
style: {
|
|
306
305
|
position: "relative",
|
|
@@ -309,16 +308,16 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
309
308
|
borderRadius: 10,
|
|
310
309
|
overflow: "hidden",
|
|
311
310
|
flexShrink: 0,
|
|
312
|
-
zIndex:
|
|
313
|
-
border:
|
|
314
|
-
borderColor:
|
|
311
|
+
zIndex: t.id === o.id ? 30 : r.length - u,
|
|
312
|
+
border: t.id === o.id ? "1px solid" : void 0,
|
|
313
|
+
borderColor: t.id === o.id ? "divider" : void 0,
|
|
315
314
|
cursor: "pointer"
|
|
316
315
|
},
|
|
317
|
-
initial: { rotate:
|
|
316
|
+
initial: { rotate: u % 2 === 0 ? -15 : 15 },
|
|
318
317
|
animate: {
|
|
319
|
-
scale:
|
|
320
|
-
rotate:
|
|
321
|
-
y:
|
|
318
|
+
scale: t.id === o.id ? 1.2 : 1,
|
|
319
|
+
rotate: t.id === o.id ? 0 : u % 2 === 0 ? -15 : 15,
|
|
320
|
+
y: t.id === o.id ? -8 : 0
|
|
322
321
|
},
|
|
323
322
|
whileHover: {
|
|
324
323
|
scale: 1.3,
|
|
@@ -327,35 +326,35 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
327
326
|
transition: { type: "spring", stiffness: 400, damping: 25 }
|
|
328
327
|
},
|
|
329
328
|
children: [
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}) : /* @__PURE__ */
|
|
333
|
-
|
|
329
|
+
f ? f(o, () => {
|
|
330
|
+
e ? e(o) : p(o);
|
|
331
|
+
}) : /* @__PURE__ */ i.jsx(
|
|
332
|
+
w,
|
|
334
333
|
{
|
|
335
|
-
item:
|
|
334
|
+
item: o,
|
|
336
335
|
objectFit: "cover",
|
|
337
336
|
style: {
|
|
338
337
|
width: "100%",
|
|
339
338
|
height: "100%",
|
|
340
339
|
// Disable pointer events for videos in thumbnails to ensure parent click handler works
|
|
341
|
-
pointerEvents:
|
|
340
|
+
pointerEvents: o.type === "video" ? "none" : "auto"
|
|
342
341
|
},
|
|
343
342
|
disableVideoControls: !0
|
|
344
343
|
}
|
|
345
344
|
),
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
|
|
345
|
+
/* @__PURE__ */ i.jsx(
|
|
346
|
+
a,
|
|
348
347
|
{
|
|
349
348
|
sx: {
|
|
350
349
|
position: "absolute",
|
|
351
350
|
inset: 0,
|
|
352
|
-
background: (
|
|
351
|
+
background: (x) => `linear-gradient(to bottom, transparent, ${(x.vars || x).palette.action.hover}, ${(x.vars || x).palette.action.selected})`,
|
|
353
352
|
pointerEvents: "none"
|
|
354
353
|
}
|
|
355
354
|
}
|
|
356
355
|
),
|
|
357
|
-
|
|
358
|
-
|
|
356
|
+
t.id === o.id && /* @__PURE__ */ i.jsx(
|
|
357
|
+
b.div,
|
|
359
358
|
{
|
|
360
359
|
layoutId: "activeGlow",
|
|
361
360
|
style: {
|
|
@@ -371,7 +370,7 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
371
370
|
)
|
|
372
371
|
]
|
|
373
372
|
},
|
|
374
|
-
|
|
373
|
+
o.id
|
|
375
374
|
)) })
|
|
376
375
|
}
|
|
377
376
|
)
|
|
@@ -381,21 +380,9 @@ const g = ({ item: o, onClick: l, style: d = {}, objectFit: i = "contain", disab
|
|
|
381
380
|
}
|
|
382
381
|
);
|
|
383
382
|
};
|
|
384
|
-
|
|
385
|
-
try {
|
|
386
|
-
g.displayName = "DefaultMediaItem", g.__docgenInfo = { description: "Default MediaItem renderer for images and videos", displayName: "DefaultMediaItem", props: {} };
|
|
387
|
-
} catch {
|
|
388
|
-
}
|
|
389
|
-
try {
|
|
390
|
-
b.displayName = "SImageModal", b.__docgenInfo = { description: "A reusable full-screen modal for displaying media items with navigation features.", displayName: "SImageModal", props: { selectedItem: { defaultValue: null, description: "Currently selected media item to display", name: "selectedItem", required: !1, type: { name: "MediaItemType | null" } }, isOpen: { defaultValue: null, description: "Whether the modal is open", name: "isOpen", required: !0, type: { name: "boolean" } }, onClose: { defaultValue: null, description: "Function to close the modal", name: "onClose", required: !0, type: { name: "() => void" } }, onItemChange: { defaultValue: null, description: "Function to change the selected item (for navigation)", name: "onItemChange", required: !1, type: { name: "((item: MediaItemType) => void)" } }, mediaItems: { defaultValue: { value: "[]" }, description: "Array of all media items for navigation (optional - if provided, enables prev/next navigation)", name: "mediaItems", required: !1, type: { name: "MediaItemType[]" } }, renderMediaItem: { defaultValue: null, description: "Custom component to render media items", name: "renderMediaItem", required: !1, type: { name: "((item: MediaItemType, onClick?: (() => void)) => ReactNode)" } }, showNavigation: { defaultValue: { value: "true" }, description: "Whether to show navigation arrows", name: "showNavigation", required: !1, type: { name: "boolean" } }, showThumbnailDock: { defaultValue: { value: "true" }, description: "Whether to show the thumbnail dock", name: "showThumbnailDock", required: !1, type: { name: "boolean" } }, showCounter: { defaultValue: { value: "true" }, description: "Whether to show the item counter", name: "showCounter", required: !1, type: { name: "boolean" } }, modalSx: { defaultValue: { value: "{}" }, description: "Custom modal styling", name: "modalSx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
391
|
-
} catch {
|
|
392
|
-
}
|
|
393
|
-
try {
|
|
394
|
-
simagemodal.displayName = "simagemodal", simagemodal.__docgenInfo = { description: "A reusable full-screen modal for displaying media items with navigation features.", displayName: "simagemodal", props: { selectedItem: { defaultValue: null, description: "Currently selected media item to display", name: "selectedItem", required: !1, type: { name: "MediaItemType | null" } }, isOpen: { defaultValue: null, description: "Whether the modal is open", name: "isOpen", required: !0, type: { name: "boolean" } }, onClose: { defaultValue: null, description: "Function to close the modal", name: "onClose", required: !0, type: { name: "() => void" } }, onItemChange: { defaultValue: null, description: "Function to change the selected item (for navigation)", name: "onItemChange", required: !1, type: { name: "((item: MediaItemType) => void)" } }, mediaItems: { defaultValue: { value: "[]" }, description: "Array of all media items for navigation (optional - if provided, enables prev/next navigation)", name: "mediaItems", required: !1, type: { name: "MediaItemType[]" } }, renderMediaItem: { defaultValue: null, description: "Custom component to render media items", name: "renderMediaItem", required: !1, type: { name: "((item: MediaItemType, onClick?: (() => void)) => ReactNode)" } }, showNavigation: { defaultValue: { value: "true" }, description: "Whether to show navigation arrows", name: "showNavigation", required: !1, type: { name: "boolean" } }, showThumbnailDock: { defaultValue: { value: "true" }, description: "Whether to show the thumbnail dock", name: "showThumbnailDock", required: !1, type: { name: "boolean" } }, showCounter: { defaultValue: { value: "true" }, description: "Whether to show the item counter", name: "showCounter", required: !1, type: { name: "boolean" } }, modalSx: { defaultValue: { value: "{}" }, description: "Custom modal styling", name: "modalSx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
395
|
-
} catch {
|
|
396
|
-
}
|
|
383
|
+
$.displayName = "SImageModal";
|
|
397
384
|
export {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
385
|
+
w as DefaultMediaItem,
|
|
386
|
+
$ as SImageModal,
|
|
387
|
+
$ as default
|
|
401
388
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { j as t } from "../jsx-runtime-
|
|
2
|
-
import { useColorScheme as
|
|
3
|
-
import "../s-lazy-image/
|
|
4
|
-
|
|
5
|
-
const m = () => /* @__PURE__ */ t.jsx(o, { sx: { height: "fit-content", width: "fit-content", maxWidth: 220, maxHeight: 220 }, children: /* @__PURE__ */ t.jsxs("svg", { width: "439", height: "326", viewBox: "0 0 439 326", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useColorScheme as l, Box as d, Typography as k, SvgIcon as i } from "@mui/material";
|
|
3
|
+
import n from "../s-lazy-image/s-lazy-image.js";
|
|
4
|
+
const x = () => /* @__PURE__ */ t.jsx(i, { sx: { height: "fit-content", width: "fit-content", maxWidth: 220, maxHeight: 220 }, children: /* @__PURE__ */ t.jsxs("svg", { width: "439", height: "326", viewBox: "0 0 439 326", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6
5
|
/* @__PURE__ */ t.jsxs("g", { clipPath: "url(#clip0_1173_4088)", children: [
|
|
7
6
|
/* @__PURE__ */ t.jsx(
|
|
8
7
|
"path",
|
|
@@ -126,7 +125,7 @@ const m = () => /* @__PURE__ */ t.jsx(o, { sx: { height: "fit-content", width: "
|
|
|
126
125
|
)
|
|
127
126
|
] }),
|
|
128
127
|
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_1173_4088", children: /* @__PURE__ */ t.jsx("rect", { width: "439", height: "326", fill: "white" }) }) })
|
|
129
|
-
] }) }),
|
|
128
|
+
] }) }), a = () => /* @__PURE__ */ t.jsx(i, { sx: { height: "fit-content", width: "fit-content", maxWidth: 220, maxHeight: 220 }, children: /* @__PURE__ */ t.jsxs("svg", { width: "439", height: "326", viewBox: "0 0 439 326", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
130
129
|
/* @__PURE__ */ t.jsxs("g", { clipPath: "url(#clip0_595_6559)", children: [
|
|
131
130
|
/* @__PURE__ */ t.jsx(
|
|
132
131
|
"path",
|
|
@@ -250,23 +249,15 @@ const m = () => /* @__PURE__ */ t.jsx(o, { sx: { height: "fit-content", width: "
|
|
|
250
249
|
)
|
|
251
250
|
] }),
|
|
252
251
|
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_595_6559", children: /* @__PURE__ */ t.jsx("rect", { width: "439", height: "326", fill: "white" }) }) })
|
|
253
|
-
] }) }),
|
|
254
|
-
const { mode:
|
|
255
|
-
return /* @__PURE__ */ t.jsxs(
|
|
256
|
-
|
|
257
|
-
/* @__PURE__ */ t.jsx(
|
|
252
|
+
] }) }), p = ({ message: e, image: C, boxProps: s, lazyImageProps: r }) => {
|
|
253
|
+
const { mode: o } = l(), h = o === "light" ? /* @__PURE__ */ t.jsx(x, {}) : /* @__PURE__ */ t.jsx(a, {});
|
|
254
|
+
return /* @__PURE__ */ t.jsxs(d, { display: "flex", justifyContent: "center", alignItems: "center", flexDirection: "column", ...s, children: [
|
|
255
|
+
C ? /* @__PURE__ */ t.jsx(n, { src: C, width: 220, height: 220, ...r }) : h,
|
|
256
|
+
/* @__PURE__ */ t.jsx(k, { variant: "h6", color: "text.disabled", children: e })
|
|
258
257
|
] });
|
|
259
258
|
};
|
|
260
|
-
|
|
261
|
-
try {
|
|
262
|
-
i.displayName = "SItemNotFound", i.__docgenInfo = { description: "A flexible empty state component that displays a custom message with an accompanying image.", displayName: "SItemNotFound", props: { message: { defaultValue: null, description: "The message text to display below the image", name: "message", required: !0, type: { name: "string" } }, image: { defaultValue: null, description: "Path to the image to display (optional, uses theme-aware default if not provided)", name: "image", required: !1, type: { name: "string" } }, boxProps: { defaultValue: null, description: "Additional props to pass to the root Box container", name: "boxProps", required: !1, type: { name: "BoxProps" } }, lazyImageProps: { defaultValue: null, description: "Props to pass to the SLazyImage component for advanced image configuration", name: "lazyImageProps", required: !1, type: { name: 'Omit<SLazyImageProps, "src">' } } } };
|
|
263
|
-
} catch {
|
|
264
|
-
}
|
|
265
|
-
try {
|
|
266
|
-
sitemnotfound.displayName = "sitemnotfound", sitemnotfound.__docgenInfo = { description: "A flexible empty state component that displays a custom message with an accompanying image.", displayName: "sitemnotfound", props: { message: { defaultValue: null, description: "The message text to display below the image", name: "message", required: !0, type: { name: "string" } }, image: { defaultValue: null, description: "Path to the image to display (optional, uses theme-aware default if not provided)", name: "image", required: !1, type: { name: "string" } }, boxProps: { defaultValue: null, description: "Additional props to pass to the root Box container", name: "boxProps", required: !1, type: { name: "BoxProps" } }, lazyImageProps: { defaultValue: null, description: "Props to pass to the SLazyImage component for advanced image configuration", name: "lazyImageProps", required: !1, type: { name: 'Omit<SLazyImageProps, "src">' } } } };
|
|
267
|
-
} catch {
|
|
268
|
-
}
|
|
259
|
+
p.displayName = "SItemNotFound";
|
|
269
260
|
export {
|
|
270
|
-
|
|
271
|
-
|
|
261
|
+
p as SItemNotFound,
|
|
262
|
+
p as default
|
|
272
263
|
};
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
import { j as e } from "../jsx-runtime-
|
|
2
|
-
import { c as
|
|
3
|
-
import { Stack as
|
|
4
|
-
const
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { c as s } from "../createSvgIcon-BKymXuBG.js";
|
|
3
|
+
import { Stack as o, Box as c, Tooltip as l } from "@mui/material";
|
|
4
|
+
const a = s(/* @__PURE__ */ e.jsx("path", {
|
|
5
5
|
d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
|
|
6
|
-
}), "HelpOutlineOutlined"),
|
|
7
|
-
/* @__PURE__ */ e.jsxs(
|
|
8
|
-
/* @__PURE__ */ e.jsx(
|
|
9
|
-
|
|
6
|
+
}), "HelpOutlineOutlined"), m = ({ label: n, children: i, hint: t, sx: r }) => /* @__PURE__ */ e.jsxs(o, { width: "100%", sx: r, children: [
|
|
7
|
+
/* @__PURE__ */ e.jsxs(o, { direction: "row", alignItems: "center", mb: 1, children: [
|
|
8
|
+
/* @__PURE__ */ e.jsx(c, { sx: { fontSize: "0.875rem", fontWeight: 500, lineHeight: 1.57, color: "text.secondary" }, children: n }),
|
|
9
|
+
t ? /* @__PURE__ */ e.jsx(l, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(a, { sx: { marginLeft: "4px", fontSize: 16, color: "text.secondary" } }) }) : null
|
|
10
10
|
] }),
|
|
11
|
-
|
|
11
|
+
i
|
|
12
12
|
] });
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
l.displayName = "SLabel", l.__docgenInfo = { description: "An enhanced label component that provides structured labeling with optional hints and tooltips.", displayName: "SLabel", props: { label: { defaultValue: null, description: "Main label text or element to display prominently", name: "label", required: !1, type: { name: "ReactNode" } }, children: { defaultValue: null, description: "Child elements to render below the label, typically form controls", name: "children", required: !1, type: { name: "ReactNode" } }, hint: { defaultValue: null, description: "Tooltip hint text shown on hover of the help icon", name: "hint", required: !1, type: { name: "string" } }, sx: { defaultValue: null, description: "Custom styles using Material-UI sx prop for layout customization", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
16
|
-
} catch {
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
slabel.displayName = "slabel", slabel.__docgenInfo = { description: "An enhanced label component that provides structured labeling with optional hints and tooltips.", displayName: "slabel", props: { label: { defaultValue: null, description: "Main label text or element to display prominently", name: "label", required: !1, type: { name: "ReactNode" } }, children: { defaultValue: null, description: "Child elements to render below the label, typically form controls", name: "children", required: !1, type: { name: "ReactNode" } }, hint: { defaultValue: null, description: "Tooltip hint text shown on hover of the help icon", name: "hint", required: !1, type: { name: "string" } }, sx: { defaultValue: null, description: "Custom styles using Material-UI sx prop for layout customization", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
|
13
|
+
m.displayName = "SLabel";
|
|
22
14
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
m as SLabel,
|
|
16
|
+
m as default
|
|
25
17
|
};
|