@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,46 +1,39 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
import { useMotionValue as
|
|
5
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useRef as u, useEffect as j } from "react";
|
|
3
|
+
import { Box as o } from "@mui/material";
|
|
4
|
+
import { useMotionValue as v, useAnimationFrame as y, useTransform as x, useMotionTemplate as w, motion as E } from "framer-motion";
|
|
5
|
+
const L = 250, d = (e, n) => ({
|
|
6
6
|
position: "absolute",
|
|
7
7
|
left: "50%",
|
|
8
8
|
top: "50%",
|
|
9
|
-
width: `${
|
|
10
|
-
height: `${
|
|
9
|
+
width: `${e}px`,
|
|
10
|
+
height: `${e}px`,
|
|
11
11
|
transform: "translate(-50%, -50%)",
|
|
12
12
|
opacity: 0.5,
|
|
13
|
-
background: `radial-gradient(${
|
|
13
|
+
background: `radial-gradient(${n} 40%, transparent 60%)`,
|
|
14
14
|
filter: "blur(12px)",
|
|
15
15
|
// Creates the soft glow effect
|
|
16
16
|
pointerEvents: "none"
|
|
17
17
|
// Prevents interference with user interactions
|
|
18
18
|
});
|
|
19
|
-
function
|
|
20
|
-
children:
|
|
21
|
-
duration:
|
|
22
|
-
rx:
|
|
23
|
-
ry:
|
|
24
|
-
phase:
|
|
19
|
+
function f({
|
|
20
|
+
children: e,
|
|
21
|
+
duration: n,
|
|
22
|
+
rx: h,
|
|
23
|
+
ry: a,
|
|
24
|
+
phase: l = 0
|
|
25
25
|
}) {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
s.set((l * b + t * c) % t);
|
|
26
|
+
const r = u(null), s = v(0);
|
|
27
|
+
y((i) => {
|
|
28
|
+
const c = r.current?.getTotalLength();
|
|
29
|
+
if (c) {
|
|
30
|
+
const b = c / n;
|
|
31
|
+
s.set((i * b + c * l) % c);
|
|
33
32
|
}
|
|
34
33
|
});
|
|
35
|
-
const p =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}), x = g(s, (l) => {
|
|
39
|
-
var t, r;
|
|
40
|
-
return (r = (t = i.current) == null ? void 0 : t.getPointAtLength(l)) == null ? void 0 : r.y;
|
|
41
|
-
}), v = S`translateX(${p}px) translateY(${x}px) translateX(-50%) translateY(-50%)`;
|
|
42
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ e.jsx(
|
|
34
|
+
const p = x(s, (i) => r.current?.getPointAtLength(i)?.x), m = x(s, (i) => r.current?.getPointAtLength(i)?.y), g = w`translateX(${p}px) translateY(${m}px) translateX(-50%) translateY(-50%)`;
|
|
35
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
36
|
+
/* @__PURE__ */ t.jsx(
|
|
44
37
|
"svg",
|
|
45
38
|
{
|
|
46
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -48,38 +41,38 @@ function y({
|
|
|
48
41
|
width: "100%",
|
|
49
42
|
height: "100%",
|
|
50
43
|
style: { position: "absolute", inset: 0 },
|
|
51
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ t.jsx("rect", { fill: "none", width: "100%", height: "100%", rx: h, ry: a, ref: r })
|
|
52
45
|
}
|
|
53
46
|
),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
47
|
+
/* @__PURE__ */ t.jsx(
|
|
48
|
+
E.div,
|
|
56
49
|
{
|
|
57
50
|
style: {
|
|
58
51
|
position: "absolute",
|
|
59
52
|
top: 0,
|
|
60
53
|
left: 0,
|
|
61
54
|
display: "inline-block",
|
|
62
|
-
transform:
|
|
55
|
+
transform: g
|
|
63
56
|
},
|
|
64
|
-
children:
|
|
57
|
+
children: e
|
|
65
58
|
}
|
|
66
59
|
)
|
|
67
60
|
] });
|
|
68
61
|
}
|
|
69
|
-
const
|
|
70
|
-
className:
|
|
71
|
-
duration:
|
|
72
|
-
children:
|
|
73
|
-
glowColor:
|
|
74
|
-
glowSize:
|
|
75
|
-
...
|
|
62
|
+
const M = ({
|
|
63
|
+
className: e,
|
|
64
|
+
duration: n = 6e3,
|
|
65
|
+
children: h,
|
|
66
|
+
glowColor: a = "var(--s-palette-primary-main)",
|
|
67
|
+
glowSize: l = L,
|
|
68
|
+
...r
|
|
76
69
|
}) => {
|
|
77
|
-
const s =
|
|
78
|
-
return
|
|
70
|
+
const s = u(null), p = u(null);
|
|
71
|
+
return j(() => () => {
|
|
79
72
|
p.current !== null && window.cancelAnimationFrame(p.current);
|
|
80
73
|
}, []), // Main container with relative positioning for absolute children
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
74
|
+
/* @__PURE__ */ t.jsxs(
|
|
75
|
+
o,
|
|
83
76
|
{
|
|
84
77
|
position: "relative",
|
|
85
78
|
overflow: "hidden",
|
|
@@ -89,15 +82,15 @@ const f = ({
|
|
|
89
82
|
sx: {
|
|
90
83
|
backgroundColor: "transparent"
|
|
91
84
|
},
|
|
92
|
-
className:
|
|
93
|
-
...
|
|
85
|
+
className: e,
|
|
86
|
+
...r,
|
|
94
87
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ t.jsxs(o, { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, children: [
|
|
89
|
+
/* @__PURE__ */ t.jsx(f, { duration: n, rx: "100%", ry: "100%", phase: 0, children: /* @__PURE__ */ t.jsx(o, { sx: d(l, a) }) }),
|
|
90
|
+
/* @__PURE__ */ t.jsx(f, { duration: n, rx: "100%", ry: "100%", phase: 0.5, children: /* @__PURE__ */ t.jsx(o, { sx: d(l, a) }) })
|
|
98
91
|
] }),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
92
|
+
/* @__PURE__ */ t.jsx(
|
|
93
|
+
o,
|
|
101
94
|
{
|
|
102
95
|
sx: {
|
|
103
96
|
position: "absolute",
|
|
@@ -108,8 +101,8 @@ const f = ({
|
|
|
108
101
|
height: "100%",
|
|
109
102
|
zIndex: 2
|
|
110
103
|
},
|
|
111
|
-
children: /* @__PURE__ */
|
|
112
|
-
|
|
104
|
+
children: /* @__PURE__ */ t.jsx(
|
|
105
|
+
o,
|
|
113
106
|
{
|
|
114
107
|
ref: s,
|
|
115
108
|
sx: {
|
|
@@ -129,21 +122,13 @@ const f = ({
|
|
|
129
122
|
)
|
|
130
123
|
}
|
|
131
124
|
),
|
|
132
|
-
|
|
125
|
+
h
|
|
133
126
|
]
|
|
134
127
|
}
|
|
135
128
|
);
|
|
136
129
|
};
|
|
137
|
-
|
|
138
|
-
try {
|
|
139
|
-
f.displayName = "SMovingBorder", f.__docgenInfo = { description: "An animated border effect component that creates smooth moving light effects around the element perimeter.", displayName: "SMovingBorder", props: { duration: { defaultValue: { value: "6000" }, description: "Duration of one complete animation cycle in milliseconds (default: 6000)", name: "duration", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for styling", name: "className", required: !1, type: { name: "string" } }, glowColor: { defaultValue: { value: "var(--s-palette-primary-main)" }, description: "Color of the glow effect (default: 'var(--s-palette-primary-main)')", name: "glowColor", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "250" }, description: "Size of the glow effect in pixels (default: 250)", name: "glowSize", required: !1, type: { name: "number" } }, children: { defaultValue: null, description: "Content to render inside the moving border container", name: "children", required: !0, type: { name: "ReactNode" } } } };
|
|
140
|
-
} catch {
|
|
141
|
-
}
|
|
142
|
-
try {
|
|
143
|
-
smovingborder.displayName = "smovingborder", smovingborder.__docgenInfo = { description: "An animated border effect component that creates smooth moving light effects around the element perimeter.", displayName: "smovingborder", props: { duration: { defaultValue: { value: "6000" }, description: "Duration of one complete animation cycle in milliseconds (default: 6000)", name: "duration", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for styling", name: "className", required: !1, type: { name: "string" } }, glowColor: { defaultValue: { value: "var(--s-palette-primary-main)" }, description: "Color of the glow effect (default: 'var(--s-palette-primary-main)')", name: "glowColor", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "250" }, description: "Size of the glow effect in pixels (default: 250)", name: "glowSize", required: !1, type: { name: "number" } }, children: { defaultValue: null, description: "Content to render inside the moving border container", name: "children", required: !0, type: { name: "ReactNode" } } } };
|
|
144
|
-
} catch {
|
|
145
|
-
}
|
|
130
|
+
M.displayName = "SMovingBorder";
|
|
146
131
|
export {
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
M as SMovingBorder,
|
|
133
|
+
M as default
|
|
149
134
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { j as t } from "../jsx-runtime-
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { usePopover as
|
|
6
|
-
import {
|
|
7
|
-
import { M as
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { c as x } from "../createSvgIcon-BKymXuBG.js";
|
|
4
|
+
import { Stack as j, OutlinedInput as M } from "@mui/material";
|
|
5
|
+
import { usePopover as S } from "../hooks/use-popover.js";
|
|
6
|
+
import { M as C } from "../Menu-DZYzE2Mg.js";
|
|
7
|
+
import { M as R } from "../MenuItem-BXiIhfBS.js";
|
|
8
|
+
import { SChips as b } from "../s-chips/s-chips.js";
|
|
9
|
+
const v = x(/* @__PURE__ */ t.jsx("path", {
|
|
10
10
|
d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
|
|
11
|
-
}), "UnfoldMore"),
|
|
12
|
-
label:
|
|
11
|
+
}), "UnfoldMore"), I = ({
|
|
12
|
+
label: p,
|
|
13
13
|
onChange: a,
|
|
14
|
-
options:
|
|
15
|
-
value:
|
|
16
|
-
chipProps:
|
|
14
|
+
options: i,
|
|
15
|
+
value: r = [],
|
|
16
|
+
chipProps: d
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, [
|
|
22
|
-
const
|
|
18
|
+
const o = S(), c = s.useRef(null), [u, f] = s.useState();
|
|
19
|
+
s.useEffect(() => {
|
|
20
|
+
c.current && f(c.current.offsetWidth);
|
|
21
|
+
}, [o.open]);
|
|
22
|
+
const m = s.useCallback(
|
|
23
23
|
(e, n) => {
|
|
24
|
-
let
|
|
25
|
-
n ?
|
|
24
|
+
let l = [...r];
|
|
25
|
+
n ? l.push(e) : l = l.filter((h) => h !== e), a?.(l);
|
|
26
26
|
},
|
|
27
|
-
[a,
|
|
27
|
+
[a, r]
|
|
28
28
|
);
|
|
29
|
-
return /* @__PURE__ */ t.jsxs(
|
|
29
|
+
return /* @__PURE__ */ t.jsxs(j, { direction: "column", gap: 1, children: [
|
|
30
30
|
/* @__PURE__ */ t.jsx(
|
|
31
|
-
|
|
31
|
+
M,
|
|
32
32
|
{
|
|
33
|
-
endAdornment: /* @__PURE__ */ t.jsx(
|
|
34
|
-
onClick:
|
|
33
|
+
endAdornment: /* @__PURE__ */ t.jsx(v, { fontSize: "small", sx: { color: "action.active", position: "absolute", right: "7px" } }),
|
|
34
|
+
onClick: o.handleOpen,
|
|
35
35
|
ref: (e) => {
|
|
36
|
-
|
|
36
|
+
o.anchorRef.current = e, c.current = e;
|
|
37
37
|
},
|
|
38
|
-
value:
|
|
38
|
+
value: p,
|
|
39
39
|
sx: {
|
|
40
40
|
input: {
|
|
41
41
|
color: "text.secondary"
|
|
@@ -44,19 +44,19 @@ const V = v(/* @__PURE__ */ t.jsx("path", {
|
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
/* @__PURE__ */ t.jsx(
|
|
47
|
-
|
|
47
|
+
C,
|
|
48
48
|
{
|
|
49
|
-
anchorEl:
|
|
50
|
-
onClose:
|
|
51
|
-
open:
|
|
52
|
-
slotProps: { paper: { sx: { width:
|
|
53
|
-
children:
|
|
54
|
-
const n =
|
|
49
|
+
anchorEl: o.anchorRef.current,
|
|
50
|
+
onClose: o.handleClose,
|
|
51
|
+
open: o.open,
|
|
52
|
+
slotProps: { paper: { sx: { width: u ? `${u}px` : void 0 } } },
|
|
53
|
+
children: i.map((e) => {
|
|
54
|
+
const n = r.includes(e.value);
|
|
55
55
|
return /* @__PURE__ */ t.jsx(
|
|
56
|
-
|
|
56
|
+
R,
|
|
57
57
|
{
|
|
58
58
|
onClick: () => {
|
|
59
|
-
|
|
59
|
+
m(e.value, !n);
|
|
60
60
|
},
|
|
61
61
|
selected: n,
|
|
62
62
|
children: e.label
|
|
@@ -67,24 +67,16 @@ const V = v(/* @__PURE__ */ t.jsx("path", {
|
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ t.jsx(
|
|
70
|
-
|
|
70
|
+
b,
|
|
71
71
|
{
|
|
72
|
-
chips:
|
|
73
|
-
...
|
|
72
|
+
chips: i.filter((e) => r.includes(e.value)).map((e) => e.label),
|
|
73
|
+
...d
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
] });
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
try {
|
|
80
|
-
u.displayName = "SMultiSelect", u.__docgenInfo = { description: "A multi-selection dropdown component that displays selected items as chips.", displayName: "SMultiSelect", props: { label: { defaultValue: null, description: "Label text displayed in the input field", name: "label", required: !0, type: { name: "string" } }, onChange: { defaultValue: null, description: "Callback fired when the selection changes", name: "onChange", required: !1, type: { name: "((value: T[]) => void)" } }, options: { defaultValue: null, description: "Array of options with label and value pairs", name: "options", required: !0, type: { name: "readonly { label: string; value: T; }[]" } }, value: { defaultValue: { value: "[]" }, description: "Currently selected values", name: "value", required: !1, type: { name: "T[]" } }, chipProps: { defaultValue: null, description: "Additional props to pass to the chips component", name: "chipProps", required: !1, type: { name: 'Omit<SChipsProps, "chips">' } } } };
|
|
81
|
-
} catch {
|
|
82
|
-
}
|
|
83
|
-
try {
|
|
84
|
-
smultiselect.displayName = "smultiselect", smultiselect.__docgenInfo = { description: "A multi-selection dropdown component that displays selected items as chips.", displayName: "smultiselect", props: { label: { defaultValue: null, description: "Label text displayed in the input field", name: "label", required: !0, type: { name: "string" } }, onChange: { defaultValue: null, description: "Callback fired when the selection changes", name: "onChange", required: !1, type: { name: "((value: T[]) => void)" } }, options: { defaultValue: null, description: "Array of options with label and value pairs", name: "options", required: !0, type: { name: "readonly { label: string; value: T; }[]" } }, value: { defaultValue: { value: "[]" }, description: "Currently selected values", name: "value", required: !1, type: { name: "T[]" } }, chipProps: { defaultValue: null, description: "Additional props to pass to the chips component", name: "chipProps", required: !1, type: { name: 'Omit<SChipsProps, "chips">' } } } };
|
|
85
|
-
} catch {
|
|
86
|
-
}
|
|
78
|
+
I.displayName = "SMultiSelect";
|
|
87
79
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
80
|
+
I as SMultiSelect,
|
|
81
|
+
I as default
|
|
90
82
|
};
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { u
|
|
4
|
-
const
|
|
5
|
-
const { children:
|
|
6
|
-
return
|
|
7
|
-
e ||
|
|
8
|
-
}, [e]),
|
|
9
|
-
e &&
|
|
10
|
-
}, [e]), /* @__PURE__ */
|
|
1
|
+
import { j as n } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { u } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
4
|
+
const c = (r) => {
|
|
5
|
+
const { children: a, defer: e = !1, fallback: o = null } = r, [f, s] = t.useState(!1);
|
|
6
|
+
return u(() => {
|
|
7
|
+
e || s(!0);
|
|
8
|
+
}, [e]), t.useEffect(() => {
|
|
9
|
+
e && s(!0);
|
|
10
|
+
}, [e]), /* @__PURE__ */ n.jsx(t.Fragment, { children: f ? a : o });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
t.displayName = "SNoSsr", t.__docgenInfo = { description: "Component that prevents server-side rendering of its children.", displayName: "SNoSsr", props: { children: { defaultValue: null, description: "Content to render only on the client side", name: "children", required: !1, type: { name: "ReactNode" } }, defer: { defaultValue: null, description: "Whether to defer rendering until after initial paint", name: "defer", required: !1, type: { name: "boolean" } }, fallback: { defaultValue: null, description: "Content to show during server-side rendering or while loading", name: "fallback", required: !1, type: { name: "ReactNode" } } } };
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
17
|
-
try {
|
|
18
|
-
snossr.displayName = "snossr", snossr.__docgenInfo = { description: "Component that prevents server-side rendering of its children.", displayName: "snossr", props: { children: { defaultValue: null, description: "Content to render only on the client side", name: "children", required: !1, type: { name: "ReactNode" } }, defer: { defaultValue: null, description: "Whether to defer rendering until after initial paint", name: "defer", required: !1, type: { name: "boolean" } }, fallback: { defaultValue: null, description: "Content to show during server-side rendering or while loading", name: "fallback", required: !1, type: { name: "ReactNode" } } } };
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
12
|
+
c.displayName = "SNoSsr";
|
|
21
13
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
c as SNoSsr,
|
|
15
|
+
c as default
|
|
24
16
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
3
|
import { styled as d } from "@mui/material";
|
|
4
|
-
import { OverlayScrollbarsComponent as
|
|
5
|
-
import '../assets/s-overlay-scrollbar.css';const
|
|
4
|
+
import { OverlayScrollbarsComponent as i } from "overlayscrollbars-react";
|
|
5
|
+
import '../assets/s-overlay-scrollbar.css';const b = d(i)(({ theme: a }) => ({
|
|
6
6
|
maxHeight: "100%",
|
|
7
7
|
".os-theme-dark": {
|
|
8
8
|
"--os-size": "10px",
|
|
@@ -15,27 +15,23 @@ import '../assets/s-overlay-scrollbar.css';const c = d(p)(({ theme: a }) => ({
|
|
|
15
15
|
"--os-handle-bg-active": (a.vars || a).palette.whiteAlpha.dark
|
|
16
16
|
})
|
|
17
17
|
}
|
|
18
|
-
})),
|
|
19
|
-
({ sx: a, children: r, className:
|
|
20
|
-
|
|
18
|
+
})), v = p(
|
|
19
|
+
({ sx: a, children: r, className: l, id: o, ...s }, e) => /* @__PURE__ */ t.jsx(
|
|
20
|
+
b,
|
|
21
21
|
{
|
|
22
22
|
id: o,
|
|
23
|
-
ref:
|
|
23
|
+
ref: e,
|
|
24
24
|
defer: !0,
|
|
25
25
|
sx: a,
|
|
26
|
-
className:
|
|
26
|
+
className: l,
|
|
27
27
|
options: { scrollbars: { autoHide: "leave", autoHideDelay: 100 } },
|
|
28
28
|
...s,
|
|
29
29
|
children: r
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
);
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
l.displayName = "SOverlayScrollbar", l.__docgenInfo = { description: "A custom scrollbar component with overlay styling, auto-hide functionality, and smooth animations.", displayName: "SOverlayScrollbar", props: { id: { defaultValue: null, description: "Optional id for the scrollbar container", name: "id", required: !1, type: { name: "string" } }, className: { defaultValue: null, description: "Additional CSS class name", name: "className", required: !1, type: { name: "string" } }, sx: { defaultValue: null, description: "Material-UI sx prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
33
|
+
v.displayName = "SOverlayScrollbar";
|
|
38
34
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
v as SOverlayScrollbar,
|
|
36
|
+
v as default
|
|
41
37
|
};
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { SSkeleton as
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
] }),
|
|
9
|
-
const r =
|
|
10
|
-
return o === 0 ? /* @__PURE__ */
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useTheme as a, useMediaQuery as m, Box as u, Pagination as x, Stack as c } from "@mui/material";
|
|
3
|
+
import { SSkeleton as n } from "../s-skeleton/s-skeleton.js";
|
|
4
|
+
const d = ({ style: e }) => /* @__PURE__ */ t.jsxs(c, { direction: "row", flexWrap: "wrap", gap: 1, justifyContent: "center", style: e, children: [
|
|
5
|
+
/* @__PURE__ */ t.jsx(n, { component: "icon-button" }),
|
|
6
|
+
/* @__PURE__ */ t.jsx(n, { variant: "rounded", width: 120 }),
|
|
7
|
+
/* @__PURE__ */ t.jsx(n, { component: "icon-button" })
|
|
8
|
+
] }), l = ({ loading: e, count: o = 0, ...i }) => {
|
|
9
|
+
const r = a(), s = m(r.breakpoints.down("sm"));
|
|
10
|
+
return o === 0 ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : e ? /* @__PURE__ */ t.jsx(d, { style: i.style }) : /* @__PURE__ */ t.jsx(u, { width: "100%", children: /* @__PURE__ */ t.jsx(x, { size: s ? "small" : "medium", count: o, ...i }) });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
a.displayName = "SPagination", a.__docgenInfo = { description: "Enhanced pagination component with responsive sizing and loading states.", displayName: "SPagination", props: { loading: { defaultValue: null, description: "Whether the pagination is in a loading state - shows skeleton when true", name: "loading", required: !1, type: { name: "boolean" } }, count: { defaultValue: { value: "0" }, description: "Total number of pages - component returns empty fragment when 0", name: "count", required: !1, type: { name: "number" } } } };
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
12
|
+
l.displayName = "SPagination";
|
|
17
13
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
l as SPagination,
|
|
15
|
+
l as default
|
|
20
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|