@solostylist/ui-kit 1.0.175 → 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.js +84 -92
- 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/icon-button.d.ts +726 -396
- 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,35 +1,34 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { c } from "../createSvgIcon-
|
|
4
|
-
import { Avatar as
|
|
5
|
-
import { useDropzone as
|
|
6
|
-
import {
|
|
7
|
-
import { SForm as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
const
|
|
1
|
+
import { j as o } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import * as g from "react";
|
|
3
|
+
import { c as l } from "../createSvgIcon-BKymXuBG.js";
|
|
4
|
+
import { Avatar as b, Tooltip as v, IconButton as y, Button as C } from "@mui/material";
|
|
5
|
+
import { useDropzone as z } from "react-dropzone";
|
|
6
|
+
import { bytesToSize as I } from "../utils/bytes-to-size.js";
|
|
7
|
+
import { SForm as S } from "../s-form/s-form.js";
|
|
8
|
+
import { B as i } from "../Box-CE3rycd-.js";
|
|
9
|
+
import { S as e } from "../Stack-BScsuyQy.js";
|
|
10
|
+
import { T as t } from "../Typography-9Kg27dDw.js";
|
|
11
|
+
import { SFileIcon as R } from "../s-file-icon/s-file-icon.js";
|
|
12
|
+
const k = l(/* @__PURE__ */ o.jsx("path", {
|
|
13
13
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
14
|
-
}), "CloseOutlined"),
|
|
14
|
+
}), "CloseOutlined"), D = l(/* @__PURE__ */ o.jsx("path", {
|
|
15
15
|
d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
|
|
16
|
-
}), "CloudUploadOutlined"),
|
|
17
|
-
hint:
|
|
18
|
-
label:
|
|
19
|
-
error:
|
|
20
|
-
onRemoveAll:
|
|
21
|
-
onUpload:
|
|
22
|
-
onRemove:
|
|
23
|
-
required:
|
|
24
|
-
disabledUpload:
|
|
25
|
-
isShowBtnRemoveAll:
|
|
16
|
+
}), "CloudUploadOutlined"), F = ({
|
|
17
|
+
hint: a,
|
|
18
|
+
label: c = "",
|
|
19
|
+
error: d,
|
|
20
|
+
onRemoveAll: p,
|
|
21
|
+
onUpload: w,
|
|
22
|
+
onRemove: x,
|
|
23
|
+
required: m = !1,
|
|
24
|
+
disabledUpload: B = !1,
|
|
25
|
+
isShowBtnRemoveAll: h = !1,
|
|
26
26
|
...n
|
|
27
27
|
}) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
u,
|
|
28
|
+
const { getRootProps: u, getInputProps: j, isDragActive: s } = z(n);
|
|
29
|
+
return /* @__PURE__ */ o.jsxs(g.Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ o.jsx(S, { error: d, label: c, required: m, hint: a, children: /* @__PURE__ */ o.jsxs(
|
|
31
|
+
i,
|
|
33
32
|
{
|
|
34
33
|
sx: {
|
|
35
34
|
alignItems: "center",
|
|
@@ -43,23 +42,23 @@ const _ = c(/* @__PURE__ */ e.jsx("path", {
|
|
|
43
42
|
outline: "none",
|
|
44
43
|
p: 4,
|
|
45
44
|
// Visual feedback when files are being dragged over
|
|
46
|
-
...
|
|
45
|
+
...s && {
|
|
47
46
|
bgcolor: "action.selected",
|
|
48
47
|
opacity: 0.5
|
|
49
48
|
},
|
|
50
49
|
// Hover effect when not actively dragging
|
|
51
50
|
"&:hover": {
|
|
52
|
-
...!
|
|
51
|
+
...!s && {
|
|
53
52
|
bgcolor: "action.hover"
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
},
|
|
57
|
-
...
|
|
56
|
+
...u(),
|
|
58
57
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
58
|
+
/* @__PURE__ */ o.jsx("input", { ...j() }),
|
|
59
|
+
/* @__PURE__ */ o.jsxs(e, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
|
|
60
|
+
/* @__PURE__ */ o.jsx(
|
|
61
|
+
b,
|
|
63
62
|
{
|
|
64
63
|
sx: {
|
|
65
64
|
border: "1px dashed",
|
|
@@ -67,11 +66,11 @@ const _ = c(/* @__PURE__ */ e.jsx("path", {
|
|
|
67
66
|
color: "text.secondary",
|
|
68
67
|
backgroundColor: "transparent"
|
|
69
68
|
},
|
|
70
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ o.jsx(D, { fontSize: "small" })
|
|
71
70
|
}
|
|
72
71
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ o.jsx(e, { spacing: 1, children: /* @__PURE__ */ o.jsxs(t, { color: "text.secondary", variant: "body2", children: [
|
|
73
|
+
/* @__PURE__ */ o.jsx(t, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
|
|
75
74
|
" ",
|
|
76
75
|
"or drag and drop your files here"
|
|
77
76
|
] }) })
|
|
@@ -79,11 +78,11 @@ const _ = c(/* @__PURE__ */ e.jsx("path", {
|
|
|
79
78
|
]
|
|
80
79
|
}
|
|
81
80
|
) }),
|
|
82
|
-
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
const
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
|
|
81
|
+
n.files?.length ? /* @__PURE__ */ o.jsxs(e, { mt: 1, spacing: 1, children: [
|
|
82
|
+
/* @__PURE__ */ o.jsx(e, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: n.files?.map((r) => {
|
|
83
|
+
const f = r.name.split(".").pop();
|
|
84
|
+
return /* @__PURE__ */ o.jsxs(
|
|
85
|
+
e,
|
|
87
86
|
{
|
|
88
87
|
component: "li",
|
|
89
88
|
direction: "row",
|
|
@@ -97,39 +96,31 @@ const _ = c(/* @__PURE__ */ e.jsx("path", {
|
|
|
97
96
|
p: 1
|
|
98
97
|
},
|
|
99
98
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ o.jsx(R, { extension: f }),
|
|
100
|
+
/* @__PURE__ */ o.jsxs(i, { sx: { flex: "1 1 auto" }, children: [
|
|
101
|
+
/* @__PURE__ */ o.jsx(t, { variant: "subtitle2", children: r.name }),
|
|
102
|
+
/* @__PURE__ */ o.jsx(t, { color: "text.secondary", variant: "body2", children: I(r.size) })
|
|
104
103
|
] }),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
104
|
+
/* @__PURE__ */ o.jsx(v, { title: "Remove", children: /* @__PURE__ */ o.jsx(
|
|
105
|
+
y,
|
|
107
106
|
{
|
|
108
107
|
onClick: () => {
|
|
109
|
-
|
|
108
|
+
x?.(r);
|
|
110
109
|
},
|
|
111
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ o.jsx(k, {})
|
|
112
111
|
}
|
|
113
112
|
) })
|
|
114
113
|
]
|
|
115
114
|
},
|
|
116
|
-
|
|
115
|
+
r.size
|
|
117
116
|
);
|
|
118
117
|
}) }),
|
|
119
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ o.jsx(e, { direction: "row", sx: { alignItems: "center", justifyContent: "flex-end" }, children: h && /* @__PURE__ */ o.jsx(C, { onClick: p, size: "small", type: "button", variant: "text", children: "Remove all" }) })
|
|
120
119
|
] }) : null
|
|
121
120
|
] });
|
|
122
121
|
};
|
|
123
|
-
|
|
124
|
-
try {
|
|
125
|
-
t.displayName = "SFileDropzone", t.__docgenInfo = { description: "A file dropzone component with drag-and-drop, file management, and form integration.", displayName: "SFileDropzone", props: { hint: { defaultValue: null, description: "Additional hint text displayed below the main upload message", name: "hint", required: !1, type: { name: "string" } }, files: { defaultValue: null, description: "Array of files currently selected/uploaded", name: "files", required: !1, type: { name: "CustomFile[]" } }, onRemove: { defaultValue: null, description: "Callback when a single file is removed", name: "onRemove", required: !1, type: { name: "((file: CustomFile) => void)" } }, onRemoveAll: { defaultValue: null, description: "Callback when all files are removed", name: "onRemoveAll", required: !1, type: { name: "(() => void)" } }, onUpload: { defaultValue: null, description: "Callback when upload is triggered (optional - for custom upload logic)", name: "onUpload", required: !1, type: { name: "(() => void)" } }, label: { defaultValue: { value: "" }, description: "Label for the form field", name: "label", required: !1, type: { name: "ReactNode" } }, disabledUpload: { defaultValue: { value: "false" }, description: "Whether upload functionality is disabled", name: "disabledUpload", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display", name: "error", required: !1, type: { name: "string" } }, required: { defaultValue: { value: "false" }, description: "Whether the field is required", name: "required", required: !1, type: { name: "boolean" } }, isShowBtnRemoveAll: { defaultValue: { value: "false" }, description: "Whether to show the 'Remove all' button", name: "isShowBtnRemoveAll", required: !1, type: { name: "boolean" } } } };
|
|
126
|
-
} catch {
|
|
127
|
-
}
|
|
128
|
-
try {
|
|
129
|
-
sfiledropzone.displayName = "sfiledropzone", sfiledropzone.__docgenInfo = { description: "A file dropzone component with drag-and-drop, file management, and form integration.", displayName: "sfiledropzone", props: { hint: { defaultValue: null, description: "Additional hint text displayed below the main upload message", name: "hint", required: !1, type: { name: "string" } }, files: { defaultValue: null, description: "Array of files currently selected/uploaded", name: "files", required: !1, type: { name: "CustomFile[]" } }, onRemove: { defaultValue: null, description: "Callback when a single file is removed", name: "onRemove", required: !1, type: { name: "((file: CustomFile) => void)" } }, onRemoveAll: { defaultValue: null, description: "Callback when all files are removed", name: "onRemoveAll", required: !1, type: { name: "(() => void)" } }, onUpload: { defaultValue: null, description: "Callback when upload is triggered (optional - for custom upload logic)", name: "onUpload", required: !1, type: { name: "(() => void)" } }, label: { defaultValue: { value: "" }, description: "Label for the form field", name: "label", required: !1, type: { name: "ReactNode" } }, disabledUpload: { defaultValue: { value: "false" }, description: "Whether upload functionality is disabled", name: "disabledUpload", required: !1, type: { name: "boolean" } }, error: { defaultValue: null, description: "Error message to display", name: "error", required: !1, type: { name: "string" } }, required: { defaultValue: { value: "false" }, description: "Whether the field is required", name: "required", required: !1, type: { name: "boolean" } }, isShowBtnRemoveAll: { defaultValue: { value: "false" }, description: "Whether to show the 'Remove all' button", name: "isShowBtnRemoveAll", required: !1, type: { name: "boolean" } } } };
|
|
130
|
-
} catch {
|
|
131
|
-
}
|
|
122
|
+
F.displayName = "SFileDropzone";
|
|
132
123
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
124
|
+
F as SFileDropzone,
|
|
125
|
+
F as default
|
|
135
126
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { B as
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { B as i } from "../Box-CE3rycd-.js";
|
|
3
3
|
const o = {
|
|
4
4
|
jpeg: "/assets/icon-jpg.svg",
|
|
5
5
|
jpg: "/assets/icon-jpg.svg",
|
|
@@ -7,11 +7,11 @@ const o = {
|
|
|
7
7
|
pdf: "/assets/icon-pdf.svg",
|
|
8
8
|
png: "/assets/icon-png.svg",
|
|
9
9
|
svg: "/assets/icon-svg.svg"
|
|
10
|
-
},
|
|
10
|
+
}, n = ({ extension: e }) => {
|
|
11
11
|
let s;
|
|
12
12
|
return e ? s = o[e] ?? "/assets/icon-other.svg" : s = "/assets/icon-other.svg", // Container box with fixed dimensions for consistent icon sizing
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
13
|
+
/* @__PURE__ */ t.jsx(
|
|
14
|
+
i,
|
|
15
15
|
{
|
|
16
16
|
sx: {
|
|
17
17
|
alignItems: "center",
|
|
@@ -23,16 +23,12 @@ const o = {
|
|
|
23
23
|
// Standard icon container size
|
|
24
24
|
height: "36px"
|
|
25
25
|
},
|
|
26
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ t.jsx(i, { alt: "File", component: "img", src: s, sx: { height: "100%", width: "auto" } })
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
t.displayName = "SFileIcon", t.__docgenInfo = { description: "A file type icon component that displays appropriate icons based on file extensions.", displayName: "SFileIcon", props: { extension: { defaultValue: null, description: "File extension (without dot) to determine which icon to display", name: "extension", required: !1, type: { name: "string" } } } };
|
|
33
|
-
} catch {
|
|
34
|
-
}
|
|
30
|
+
n.displayName = "SFileIcon";
|
|
35
31
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
n as SFileIcon,
|
|
33
|
+
n as default
|
|
38
34
|
};
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { B as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
try {
|
|
6
|
-
o.displayName = "SFlexBox", o.__docgenInfo = { description: "A flex container component that defaults display to flex with all Material-UI Box capabilities.", displayName: "SFlexBox", props: {} };
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
try {
|
|
10
|
-
sflexbox.displayName = "sflexbox", sflexbox.__docgenInfo = { description: "A flex container component that defaults display to flex with all Material-UI Box capabilities.", displayName: "sflexbox", props: {} };
|
|
11
|
-
} catch {
|
|
12
|
-
}
|
|
1
|
+
import { j as s } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { B as e } from "../Box-CE3rycd-.js";
|
|
3
|
+
const r = ({ children: o, ...x }) => /* @__PURE__ */ s.jsx(e, { display: "flex", ...x, children: o });
|
|
4
|
+
r.displayName = "SFlexBox";
|
|
13
5
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
r as SFlexBox,
|
|
7
|
+
r as default
|
|
16
8
|
};
|
package/dist/s-form/s-form.js
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { FormControl as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { FormControl as i, FormLabel as x, FormHelperText as o } from "@mui/material";
|
|
3
|
+
const a = ({ label: r, hint: s, error: l, required: n, children: t, htmlFor: m }) => /* @__PURE__ */ e.jsxs(i, { error: !!l, fullWidth: !0, children: [
|
|
4
|
+
r ? /* @__PURE__ */ e.jsxs(x, { htmlFor: m, required: n, sx: { display: "flex", alignItems: "center" }, children: [
|
|
5
|
+
r,
|
|
6
6
|
" "
|
|
7
7
|
] }) : null,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
t,
|
|
9
|
+
s && !l ? /* @__PURE__ */ e.jsx(o, { children: s }) : null,
|
|
10
|
+
l ? /* @__PURE__ */ e.jsx(o, { children: l }) : null
|
|
11
11
|
] });
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
l.displayName = "SForm", l.__docgenInfo = { description: "A form wrapper component that provides consistent labeling, error handling, and help text.", displayName: "SForm", props: { label: { defaultValue: null, description: "The form field label - can be text or a React element", name: "label", required: !0, type: { name: "ReactNode" } }, hint: { defaultValue: null, description: "Optional hint text displayed as a tooltip next to the label", name: "hint", required: !1, type: { name: "string" } }, error: { defaultValue: null, description: "Error message to display below the form field", name: "error", required: !1, type: { name: "string" } }, required: { defaultValue: null, description: "Whether the form field is required (adds asterisk to label)", name: "required", required: !0, type: { name: "boolean" } }, children: { defaultValue: null, description: "Child form elements (input, select, etc.) to wrap", name: "children", required: !0, type: { name: "ReactNode" } }, htmlFor: { defaultValue: null, description: "HTML 'for' attribute to associate label with input element", name: "htmlFor", required: !1, type: { name: "string" } } } };
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
17
|
-
try {
|
|
18
|
-
sform.displayName = "sform", sform.__docgenInfo = { description: "A form wrapper component that provides consistent labeling, error handling, and help text.", displayName: "sform", props: { label: { defaultValue: null, description: "The form field label - can be text or a React element", name: "label", required: !0, type: { name: "ReactNode" } }, hint: { defaultValue: null, description: "Optional hint text displayed as a tooltip next to the label", name: "hint", required: !1, type: { name: "string" } }, error: { defaultValue: null, description: "Error message to display below the form field", name: "error", required: !1, type: { name: "string" } }, required: { defaultValue: null, description: "Whether the form field is required (adds asterisk to label)", name: "required", required: !0, type: { name: "boolean" } }, children: { defaultValue: null, description: "Child form elements (input, select, etc.) to wrap", name: "children", required: !0, type: { name: "ReactNode" } }, htmlFor: { defaultValue: null, description: "HTML 'for' attribute to associate label with input element", name: "htmlFor", required: !1, type: { name: "string" } } } };
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
12
|
+
a.displayName = "SForm";
|
|
21
13
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
a as SForm,
|
|
15
|
+
a as default
|
|
24
16
|
};
|
package/dist/s-gallery/index.js
CHANGED
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
import { MediaItem as
|
|
2
|
-
try {
|
|
3
|
-
sgallery.displayName = "sgallery", sgallery.__docgenInfo = { description: "A sophisticated media gallery with drag-and-drop reordering, modal viewing, and multiple layout variants.", displayName: "sgallery", props: { mediaItems: { defaultValue: null, description: "Array of media items to display in the gallery", name: "mediaItems", required: !0, type: { name: "MediaItemType[]" } }, variant: { defaultValue: { value: "masonry" }, description: "Layout variant to use (default: 'masonry')", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"grid"' }, { value: '"masonry"' }, { value: '"spotlight"' }, { value: '"featured"' }, { value: '"highlight"' }, { value: '"custom"' }] } }, loading: { defaultValue: { value: "false" }, description: "Loading state - shows skeleton placeholders matching the variant layout", name: "loading", required: !1, type: { name: "boolean" } }, skeletonCount: { defaultValue: { value: "6" }, description: "Number of skeleton items to show when loading (default: 6)", name: "skeletonCount", required: !1, type: { name: "number" } } } };
|
|
4
|
-
} catch {
|
|
5
|
-
}
|
|
6
|
-
try {
|
|
7
|
-
MediaItem.displayName = "MediaItem", MediaItem.__docgenInfo = { description: `MediaItem - Renders individual media items (images or videos) with optimized loading and playback.
|
|
8
|
-
|
|
9
|
-
For videos:
|
|
10
|
-
- Intersection Observer for viewport-based autoplay/pause
|
|
11
|
-
- Buffering state management with loading indicator
|
|
12
|
-
- Muted autoplay with loop for engagement
|
|
13
|
-
- Preloading for smooth playback
|
|
14
|
-
|
|
15
|
-
For images:
|
|
16
|
-
- Lazy loading via SLazyImage component
|
|
17
|
-
- Optimized object-fit handling`, displayName: "MediaItem", props: {} };
|
|
18
|
-
} catch {
|
|
19
|
-
}
|
|
20
|
-
try {
|
|
21
|
-
SGalleryProps.displayName = "SGalleryProps", SGalleryProps.__docgenInfo = { description: "Props for the SGallery component.", displayName: "SGalleryProps", props: {} };
|
|
22
|
-
} catch {
|
|
23
|
-
}
|
|
24
|
-
try {
|
|
25
|
-
MediaItemProps.displayName = "MediaItemProps", MediaItemProps.__docgenInfo = { description: "Props for individual MediaItem components", displayName: "MediaItemProps", props: {} };
|
|
26
|
-
} catch {
|
|
27
|
-
}
|
|
28
|
-
try {
|
|
29
|
-
GalleryLayoutVariant.displayName = "GalleryLayoutVariant", GalleryLayoutVariant.__docgenInfo = { description: "Built-in layout variants for the gallery", displayName: "GalleryLayoutVariant", props: {} };
|
|
30
|
-
} catch {
|
|
31
|
-
}
|
|
1
|
+
import { MediaItem as l, SGallery as r } from "./s-gallery.js";
|
|
32
2
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
3
|
+
l as MediaItem,
|
|
4
|
+
r as default
|
|
35
5
|
};
|