@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,70 +1,62 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { createTheme as
|
|
4
|
-
import { components as
|
|
5
|
-
import { dataDisplayCustomizations as
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { createTheme as p, ThemeProvider as c } from "@mui/material";
|
|
4
|
+
import { components as f } from "../theme/components/components.js";
|
|
5
|
+
import { dataDisplayCustomizations as u } from "../theme/customizations/data-display.js";
|
|
6
6
|
import { feedbackCustomizations as h } from "../theme/customizations/feedback.js";
|
|
7
|
-
import { inputsCustomizations as
|
|
8
|
-
import { navigationCustomizations as
|
|
9
|
-
import { surfacesCustomizations as
|
|
10
|
-
import { shape as
|
|
11
|
-
const
|
|
12
|
-
children:
|
|
13
|
-
disableCustomTheme:
|
|
14
|
-
themeComponents:
|
|
15
|
-
defaultMode:
|
|
7
|
+
import { inputsCustomizations as d } from "../theme/customizations/inputs.js";
|
|
8
|
+
import { navigationCustomizations as l } from "../theme/customizations/navigation.js";
|
|
9
|
+
import { surfacesCustomizations as x } from "../theme/customizations/surfaces.js";
|
|
10
|
+
import { shape as y, shadows as z, typography as S, colorSchemes as g } from "../theme/theme-primitives.js";
|
|
11
|
+
const j = ({
|
|
12
|
+
children: r,
|
|
13
|
+
disableCustomTheme: o,
|
|
14
|
+
themeComponents: t,
|
|
15
|
+
defaultMode: m = "system",
|
|
16
16
|
// System preference by default
|
|
17
|
-
theme:
|
|
18
|
-
...
|
|
17
|
+
theme: i,
|
|
18
|
+
...a
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
20
|
+
const n = s.useMemo(() => o ? {} : p({
|
|
21
21
|
// CSS variables configuration for dynamic theming
|
|
22
22
|
cssVariables: {
|
|
23
23
|
colorSchemeSelector: "data-mui-color-scheme",
|
|
24
24
|
cssVarPrefix: "s"
|
|
25
25
|
// All CSS vars prefixed with '--s-'
|
|
26
26
|
},
|
|
27
|
-
colorSchemes:
|
|
27
|
+
colorSchemes: g,
|
|
28
28
|
// Light/dark color schemes
|
|
29
|
-
typography:
|
|
29
|
+
typography: S,
|
|
30
30
|
// Custom typography scales
|
|
31
|
-
shadows:
|
|
31
|
+
shadows: z,
|
|
32
32
|
// Custom shadow definitions
|
|
33
|
-
shape:
|
|
33
|
+
shape: y,
|
|
34
34
|
// Border radius and shape settings
|
|
35
35
|
components: {
|
|
36
36
|
// Merge all component customizations
|
|
37
|
-
...
|
|
38
|
-
...
|
|
37
|
+
...d,
|
|
38
|
+
...u,
|
|
39
39
|
...h,
|
|
40
|
-
...
|
|
41
|
-
...
|
|
42
|
-
...
|
|
43
|
-
...
|
|
40
|
+
...l,
|
|
41
|
+
...x,
|
|
42
|
+
...f,
|
|
43
|
+
...t
|
|
44
44
|
// Allow external overrides
|
|
45
45
|
}
|
|
46
|
-
}), [
|
|
47
|
-
return
|
|
48
|
-
|
|
46
|
+
}), [o, t]);
|
|
47
|
+
return o ? /* @__PURE__ */ e.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(
|
|
48
|
+
c,
|
|
49
49
|
{
|
|
50
50
|
disableTransitionOnChange: !0,
|
|
51
|
-
...
|
|
52
|
-
theme: { ...
|
|
53
|
-
defaultMode:
|
|
54
|
-
children:
|
|
51
|
+
...a,
|
|
52
|
+
theme: { ...n, ...i },
|
|
53
|
+
defaultMode: m,
|
|
54
|
+
children: r
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
o.displayName = "SThemeProvider", o.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "SThemeProvider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"light"' }, { value: '"dark"' }, { value: '"system"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
|
|
61
|
-
} catch {
|
|
62
|
-
}
|
|
63
|
-
try {
|
|
64
|
-
sthemeprovider.displayName = "sthemeprovider", sthemeprovider.__docgenInfo = { description: "Central theme provider for the design system.", displayName: "sthemeprovider", props: { children: { defaultValue: null, description: "Child components to receive theme context", name: "children", required: !0, type: { name: "ReactNode" } }, disableCustomTheme: { defaultValue: null, description: "Disable custom theme for testing/docs (falls back to no theme)", name: "disableCustomTheme", required: !1, type: { name: "boolean" } }, themeComponents: { defaultValue: null, description: "Additional theme component overrides", name: "themeComponents", required: !1, type: { name: 'Components<Omit<Theme, "components">>' } }, defaultMode: { defaultValue: { value: "system" }, description: "Default color mode (defaults to 'system')", name: "defaultMode", required: !1, type: { name: "enum", value: [{ value: '"light"' }, { value: '"dark"' }, { value: '"system"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
|
|
65
|
-
} catch {
|
|
66
|
-
}
|
|
58
|
+
j.displayName = "SThemeProvider";
|
|
67
59
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
j as SThemeProvider,
|
|
61
|
+
j as default
|
|
70
62
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
5
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import { flushSync as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useRef as M, useCallback as m } from "react";
|
|
3
|
+
import { IconButton as f } from "@mui/material";
|
|
4
|
+
import { flushSync as w } from "react-dom";
|
|
5
|
+
import { c as d } from "../createSvgIcon-BKymXuBG.js";
|
|
6
|
+
const k = d(/* @__PURE__ */ t.jsx("path", {
|
|
7
7
|
d: "M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"
|
|
8
|
-
}), "DarkMode"),
|
|
8
|
+
}), "DarkMode"), j = d(/* @__PURE__ */ t.jsx("path", {
|
|
9
9
|
d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"
|
|
10
|
-
}), "LightMode"),
|
|
11
|
-
const n =
|
|
10
|
+
}), "LightMode"), z = ({ mode: c, setMode: i, sx: h }) => {
|
|
11
|
+
const n = M(null), l = c === "dark", e = m(() => {
|
|
12
12
|
setTimeout(() => {
|
|
13
|
-
|
|
13
|
+
i?.(c === "dark" ? "light" : "dark");
|
|
14
14
|
}, 0);
|
|
15
|
-
}, [
|
|
15
|
+
}, [c, i]), u = m(async () => {
|
|
16
16
|
if (!n.current || !document.startViewTransition) {
|
|
17
|
-
|
|
17
|
+
e();
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
await document.startViewTransition(() => {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
w(() => {
|
|
22
|
+
e();
|
|
23
23
|
});
|
|
24
24
|
}).ready;
|
|
25
|
-
const { top:
|
|
25
|
+
const { top: o, left: s, width: p, height: x } = n.current.getBoundingClientRect(), r = s + p / 2, a = o + x / 2, g = Math.hypot(Math.max(s, window.innerWidth - s), Math.max(o, window.innerHeight - o));
|
|
26
26
|
document.documentElement.animate(
|
|
27
27
|
{
|
|
28
|
-
clipPath: [`circle(0px at ${
|
|
28
|
+
clipPath: [`circle(0px at ${r}px ${a}px)`, `circle(${g}px at ${r}px ${a}px)`]
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
duration: 700,
|
|
@@ -33,13 +33,9 @@ const M = m(/* @__PURE__ */ e.jsx("path", {
|
|
|
33
33
|
pseudoElement: "::view-transition-new(root)"
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
}, [
|
|
37
|
-
return /* @__PURE__ */
|
|
36
|
+
}, [e]);
|
|
37
|
+
return /* @__PURE__ */ t.jsx(f, { ref: n, onClick: u, sx: h, children: l ? /* @__PURE__ */ t.jsx(j, {}) : /* @__PURE__ */ t.jsx(k, {}) });
|
|
38
38
|
};
|
|
39
|
-
try {
|
|
40
|
-
sthemeswitch.displayName = "sthemeswitch", sthemeswitch.__docgenInfo = { description: "", displayName: "sthemeswitch", props: { mode: { defaultValue: null, description: "", name: "mode", required: !1, type: { name: "enum", value: [{ value: '"light"' }, { value: '"dark"' }, { value: '"system"' }] } }, setMode: { defaultValue: null, description: "", name: "setMode", required: !1, type: { name: "((mode: SThemeMode) => void)" } }, sx: { defaultValue: null, description: "", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
41
|
-
} catch {
|
|
42
|
-
}
|
|
43
39
|
export {
|
|
44
|
-
|
|
40
|
+
z as default
|
|
45
41
|
};
|
package/dist/s-tip/s-tip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
import { S as
|
|
4
|
-
import { T as
|
|
5
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { c as i } from "../createSvgIcon-BKymXuBG.js";
|
|
3
|
+
import { S as s } from "../Stack-BScsuyQy.js";
|
|
4
|
+
import { T as o } from "../Typography-9Kg27dDw.js";
|
|
5
|
+
const c = i(/* @__PURE__ */ t.jsx("path", {
|
|
6
6
|
d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2 11.7V16h-4v-2.3C8.48 12.63 7 11.53 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.49-1.51 3.65-3 4.7"
|
|
7
|
-
}), "LightbulbOutline"),
|
|
8
|
-
|
|
7
|
+
}), "LightbulbOutline"), e = ({ message: r }) => /* @__PURE__ */ t.jsxs(
|
|
8
|
+
s,
|
|
9
9
|
{
|
|
10
10
|
direction: "row",
|
|
11
11
|
spacing: 1,
|
|
@@ -18,25 +18,17 @@ const o = a(/* @__PURE__ */ e.jsx("path", {
|
|
|
18
18
|
color: "text.secondary"
|
|
19
19
|
},
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ t.jsx(c, { sx: { fontSize: 16 } }),
|
|
22
|
+
/* @__PURE__ */ t.jsxs(o, { variant: "body2", children: [
|
|
23
|
+
/* @__PURE__ */ t.jsx(o, { component: "span", sx: { fontWeight: "bold" }, variant: "inherit", children: "Tip." }),
|
|
24
24
|
" ",
|
|
25
|
-
|
|
25
|
+
r
|
|
26
26
|
] })
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
i.displayName = "STip", i.__docgenInfo = { description: "A simple tip component that displays helpful information with a lightbulb icon.", displayName: "STip", props: { message: { defaultValue: null, description: "The tip message to display", name: "message", required: !0, type: { name: "string" } } } };
|
|
33
|
-
} catch {
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
stip.displayName = "stip", stip.__docgenInfo = { description: "A simple tip component that displays helpful information with a lightbulb icon.", displayName: "stip", props: { message: { defaultValue: null, description: "The tip message to display", name: "message", required: !0, type: { name: "string" } } } };
|
|
37
|
-
} catch {
|
|
38
|
-
}
|
|
30
|
+
e.displayName = "STip";
|
|
39
31
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
e as STip,
|
|
33
|
+
e as default
|
|
42
34
|
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { STwoPaneLayout as
|
|
2
|
-
try {
|
|
3
|
-
stwopanelayout.displayName = "stwopanelayout", stwopanelayout.__docgenInfo = { description: "A flexible two-pane layout component with customizable sidebar and content areas.", displayName: "stwopanelayout", props: { sidebar: { defaultValue: null, description: "Content to display in the sidebar pane", name: "sidebar", required: !0, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Content to display in the main content pane", name: "content", required: !0, type: { name: "ReactNode" } }, sidebarWidth: { defaultValue: { value: "280" }, description: "Width of the sidebar in pixels. Default: 280", name: "sidebarWidth", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "calc(100vh - 65px)" }, description: "Container height. Can be a CSS value or 'auto'. Default: 'calc(100vh - 65px)'", name: "height", required: !1, type: { name: "string | number" } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarSx: { defaultValue: null, description: "Custom styles for the sidebar container", name: "sidebarSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content container", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarHeaderSx: { defaultValue: null, description: "Custom styles for the sidebar header", name: "sidebarHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, contentHeaderSx: { defaultValue: null, description: "Custom styles for the content header", name: "contentHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarScrollSx: { defaultValue: null, description: "Custom styles for the sidebar scrollable area", name: "sidebarScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, contentScrollSx: { defaultValue: null, description: "Custom styles for the content scrollable area", name: "contentScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, disableBorder: { defaultValue: { value: "false" }, description: "Hide border between sidebar and content. Default: false", name: "disableBorder", required: !1, type: { name: "boolean" } }, sidebarHeader: { defaultValue: null, description: "Optional header content for the sidebar", name: "sidebarHeader", required: !1, type: { name: "ReactNode" } }, contentHeader: { defaultValue: null, description: "Optional header content for the main content area", name: "contentHeader", required: !1, type: { name: "ReactNode" } }, enableSidebarScroll: { defaultValue: { value: "true" }, description: "Enable scrollbar for sidebar. Default: true", name: "enableSidebarScroll", required: !1, type: { name: "boolean" } }, enableContentScroll: { defaultValue: { value: "false" }, description: "Enable scrollbar for content. Default: false", name: "enableContentScroll", required: !1, type: { name: "boolean" } }, sidebarPosition: { defaultValue: { value: "left" }, description: "Sidebar position. Default: 'left'", name: "sidebarPosition", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }] } }, sidebarPadding: { defaultValue: { value: "1" }, description: "Padding for sidebar content. Default: 1", name: "sidebarPadding", required: !1, type: { name: "string | number" } }, contentPadding: { defaultValue: { value: "1" }, description: "Padding for main content. Default: 0", name: "contentPadding", required: !1, type: { name: "string | number" } }, sidebarHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for sidebar header. Default: 2", name: "sidebarHeaderPadding", required: !1, type: { name: "string | number" } }, contentHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for content header. Default: 2", name: "contentHeaderPadding", required: !1, type: { name: "string | number" } } } };
|
|
4
|
-
} catch {
|
|
5
|
-
}
|
|
6
|
-
try {
|
|
7
|
-
STwoPaneLayoutProps.displayName = "STwoPaneLayoutProps", STwoPaneLayoutProps.__docgenInfo = { description: "Props for the STwoPaneLayout component", displayName: "STwoPaneLayoutProps", props: {} };
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
1
|
+
import { STwoPaneLayout as e } from "./s-two-pane-layout.js";
|
|
10
2
|
export {
|
|
11
|
-
|
|
3
|
+
e as default
|
|
12
4
|
};
|
|
@@ -1,81 +1,73 @@
|
|
|
1
|
-
import { j as e } from "../jsx-runtime-
|
|
2
|
-
import { Box as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
sidebar:
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { Box as r } from "@mui/material";
|
|
3
|
+
import { SOverlayScrollbar as p } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
|
|
4
|
+
import { SFlexBox as C } from "../s-flex-box/s-flex-box.js";
|
|
5
|
+
const R = ({
|
|
6
|
+
sidebar: o,
|
|
7
7
|
content: l,
|
|
8
|
-
sidebarWidth:
|
|
9
|
-
height:
|
|
10
|
-
containerSx:
|
|
11
|
-
sidebarSx:
|
|
12
|
-
contentSx:
|
|
13
|
-
sidebarHeaderSx:
|
|
14
|
-
contentHeaderSx:
|
|
15
|
-
sidebarScrollSx:
|
|
16
|
-
contentScrollSx:
|
|
17
|
-
disableBorder:
|
|
18
|
-
sidebarHeader:
|
|
19
|
-
contentHeader:
|
|
20
|
-
enableSidebarScroll:
|
|
21
|
-
enableContentScroll:
|
|
22
|
-
sidebarPosition:
|
|
23
|
-
sidebarPadding:
|
|
24
|
-
contentPadding:
|
|
25
|
-
sidebarHeaderPadding:
|
|
26
|
-
contentHeaderPadding:
|
|
8
|
+
sidebarWidth: a = 280,
|
|
9
|
+
height: u = "calc(100vh - 65px)",
|
|
10
|
+
containerSx: v,
|
|
11
|
+
sidebarSx: w,
|
|
12
|
+
contentSx: g,
|
|
13
|
+
sidebarHeaderSx: y,
|
|
14
|
+
contentHeaderSx: B,
|
|
15
|
+
sidebarScrollSx: i,
|
|
16
|
+
contentScrollSx: s,
|
|
17
|
+
disableBorder: h = !1,
|
|
18
|
+
sidebarHeader: d,
|
|
19
|
+
contentHeader: t,
|
|
20
|
+
enableSidebarScroll: D = !0,
|
|
21
|
+
enableContentScroll: f = !1,
|
|
22
|
+
sidebarPosition: x = "left",
|
|
23
|
+
sidebarPadding: n = 1,
|
|
24
|
+
contentPadding: c = 1,
|
|
25
|
+
sidebarHeaderPadding: F = 2,
|
|
26
|
+
contentHeaderPadding: L = 2
|
|
27
27
|
}) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const j = /* @__PURE__ */ e.jsxs(
|
|
29
|
+
r,
|
|
30
30
|
{
|
|
31
31
|
sx: {
|
|
32
|
-
width:
|
|
33
|
-
borderRight: !
|
|
34
|
-
borderLeft: !
|
|
32
|
+
width: a,
|
|
33
|
+
borderRight: !h && x === "left" ? 1 : 0,
|
|
34
|
+
borderLeft: !h && x === "right" ? 1 : 0,
|
|
35
35
|
borderColor: "divider",
|
|
36
36
|
display: "flex",
|
|
37
37
|
flexDirection: "column",
|
|
38
|
-
...
|
|
38
|
+
...w
|
|
39
39
|
},
|
|
40
40
|
children: [
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */ e.jsx(
|
|
41
|
+
d && /* @__PURE__ */ e.jsx(r, { sx: { p: F, borderBottom: 1, borderColor: "divider", ...y }, children: d }),
|
|
42
|
+
/* @__PURE__ */ e.jsx(r, { sx: { flex: 1, minHeight: 0 }, children: D ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: n, ...i }, children: o }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: n, height: "100%", overflow: "hidden", ...i }, children: o }) })
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
|
-
),
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */ e.jsx(
|
|
45
|
+
), m = /* @__PURE__ */ e.jsxs(r, { sx: { flex: 1, display: "flex", flexDirection: "column", ...g }, height: "100%", children: [
|
|
46
|
+
t && /* @__PURE__ */ e.jsx(r, { sx: { p: L, borderBottom: 1, borderColor: "divider", ...B }, children: t }),
|
|
47
|
+
/* @__PURE__ */ e.jsx(r, { sx: { flex: 1, overflow: f ? "auto" : "hidden" }, children: f ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: c, ...s }, children: l }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: c, height: "100%", ...s }, children: l }) })
|
|
48
48
|
] });
|
|
49
49
|
return /* @__PURE__ */ e.jsx(
|
|
50
|
-
|
|
50
|
+
C,
|
|
51
51
|
{
|
|
52
52
|
sx: {
|
|
53
|
-
height:
|
|
53
|
+
height: u,
|
|
54
54
|
flexDirection: "row",
|
|
55
55
|
width: "100%",
|
|
56
56
|
overflow: "hidden",
|
|
57
|
-
...
|
|
57
|
+
...v
|
|
58
58
|
},
|
|
59
|
-
children:
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
children: x === "left" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
60
|
+
j,
|
|
61
|
+
m
|
|
62
62
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
m,
|
|
64
|
+
j
|
|
65
65
|
] })
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
try {
|
|
71
|
-
r.displayName = "STwoPaneLayout", r.__docgenInfo = { description: "A flexible two-pane layout component with customizable sidebar and content areas.", displayName: "STwoPaneLayout", props: { sidebar: { defaultValue: null, description: "Content to display in the sidebar pane", name: "sidebar", required: !0, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Content to display in the main content pane", name: "content", required: !0, type: { name: "ReactNode" } }, sidebarWidth: { defaultValue: { value: "280" }, description: "Width of the sidebar in pixels. Default: 280", name: "sidebarWidth", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "calc(100vh - 65px)" }, description: "Container height. Can be a CSS value or 'auto'. Default: 'calc(100vh - 65px)'", name: "height", required: !1, type: { name: "string | number" } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarSx: { defaultValue: null, description: "Custom styles for the sidebar container", name: "sidebarSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content container", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarHeaderSx: { defaultValue: null, description: "Custom styles for the sidebar header", name: "sidebarHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, contentHeaderSx: { defaultValue: null, description: "Custom styles for the content header", name: "contentHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarScrollSx: { defaultValue: null, description: "Custom styles for the sidebar scrollable area", name: "sidebarScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, contentScrollSx: { defaultValue: null, description: "Custom styles for the content scrollable area", name: "contentScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, disableBorder: { defaultValue: { value: "false" }, description: "Hide border between sidebar and content. Default: false", name: "disableBorder", required: !1, type: { name: "boolean" } }, sidebarHeader: { defaultValue: null, description: "Optional header content for the sidebar", name: "sidebarHeader", required: !1, type: { name: "ReactNode" } }, contentHeader: { defaultValue: null, description: "Optional header content for the main content area", name: "contentHeader", required: !1, type: { name: "ReactNode" } }, enableSidebarScroll: { defaultValue: { value: "true" }, description: "Enable scrollbar for sidebar. Default: true", name: "enableSidebarScroll", required: !1, type: { name: "boolean" } }, enableContentScroll: { defaultValue: { value: "false" }, description: "Enable scrollbar for content. Default: false", name: "enableContentScroll", required: !1, type: { name: "boolean" } }, sidebarPosition: { defaultValue: { value: "left" }, description: "Sidebar position. Default: 'left'", name: "sidebarPosition", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }] } }, sidebarPadding: { defaultValue: { value: "1" }, description: "Padding for sidebar content. Default: 1", name: "sidebarPadding", required: !1, type: { name: "string | number" } }, contentPadding: { defaultValue: { value: "1" }, description: "Padding for main content. Default: 0", name: "contentPadding", required: !1, type: { name: "string | number" } }, sidebarHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for sidebar header. Default: 2", name: "sidebarHeaderPadding", required: !1, type: { name: "string | number" } }, contentHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for content header. Default: 2", name: "contentHeaderPadding", required: !1, type: { name: "string | number" } } } };
|
|
72
|
-
} catch {
|
|
73
|
-
}
|
|
74
|
-
try {
|
|
75
|
-
stwopanelayout.displayName = "stwopanelayout", stwopanelayout.__docgenInfo = { description: "A flexible two-pane layout component with customizable sidebar and content areas.", displayName: "stwopanelayout", props: { sidebar: { defaultValue: null, description: "Content to display in the sidebar pane", name: "sidebar", required: !0, type: { name: "ReactNode" } }, content: { defaultValue: null, description: "Content to display in the main content pane", name: "content", required: !0, type: { name: "ReactNode" } }, sidebarWidth: { defaultValue: { value: "280" }, description: "Width of the sidebar in pixels. Default: 280", name: "sidebarWidth", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "calc(100vh - 65px)" }, description: "Container height. Can be a CSS value or 'auto'. Default: 'calc(100vh - 65px)'", name: "height", required: !1, type: { name: "string | number" } }, containerSx: { defaultValue: null, description: "Custom styles for the main container", name: "containerSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarSx: { defaultValue: null, description: "Custom styles for the sidebar container", name: "sidebarSx", required: !1, type: { name: "SxProps<Theme>" } }, contentSx: { defaultValue: null, description: "Custom styles for the content container", name: "contentSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarHeaderSx: { defaultValue: null, description: "Custom styles for the sidebar header", name: "sidebarHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, contentHeaderSx: { defaultValue: null, description: "Custom styles for the content header", name: "contentHeaderSx", required: !1, type: { name: "SxProps<Theme>" } }, sidebarScrollSx: { defaultValue: null, description: "Custom styles for the sidebar scrollable area", name: "sidebarScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, contentScrollSx: { defaultValue: null, description: "Custom styles for the content scrollable area", name: "contentScrollSx", required: !1, type: { name: "SxProps<Theme>" } }, disableBorder: { defaultValue: { value: "false" }, description: "Hide border between sidebar and content. Default: false", name: "disableBorder", required: !1, type: { name: "boolean" } }, sidebarHeader: { defaultValue: null, description: "Optional header content for the sidebar", name: "sidebarHeader", required: !1, type: { name: "ReactNode" } }, contentHeader: { defaultValue: null, description: "Optional header content for the main content area", name: "contentHeader", required: !1, type: { name: "ReactNode" } }, enableSidebarScroll: { defaultValue: { value: "true" }, description: "Enable scrollbar for sidebar. Default: true", name: "enableSidebarScroll", required: !1, type: { name: "boolean" } }, enableContentScroll: { defaultValue: { value: "false" }, description: "Enable scrollbar for content. Default: false", name: "enableContentScroll", required: !1, type: { name: "boolean" } }, sidebarPosition: { defaultValue: { value: "left" }, description: "Sidebar position. Default: 'left'", name: "sidebarPosition", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }] } }, sidebarPadding: { defaultValue: { value: "1" }, description: "Padding for sidebar content. Default: 1", name: "sidebarPadding", required: !1, type: { name: "string | number" } }, contentPadding: { defaultValue: { value: "1" }, description: "Padding for main content. Default: 0", name: "contentPadding", required: !1, type: { name: "string | number" } }, sidebarHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for sidebar header. Default: 2", name: "sidebarHeaderPadding", required: !1, type: { name: "string | number" } }, contentHeaderPadding: { defaultValue: { value: "2" }, description: "Padding for content header. Default: 2", name: "contentHeaderPadding", required: !1, type: { name: "string | number" } } } };
|
|
76
|
-
} catch {
|
|
77
|
-
}
|
|
69
|
+
R.displayName = "STwoPaneLayout";
|
|
78
70
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
R as STwoPaneLayout,
|
|
72
|
+
R as default
|
|
81
73
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@solostylist/ui-kit/s-typewriter-text",
|
|
3
|
-
"main": "./index.ts",
|
|
4
|
-
"module": "./index.ts",
|
|
5
|
-
"types": "./index.ts"
|
|
1
|
+
{
|
|
2
|
+
"name": "@solostylist/ui-kit/s-typewriter-text",
|
|
3
|
+
"main": "./index.ts",
|
|
4
|
+
"module": "./index.ts",
|
|
5
|
+
"types": "./index.ts"
|
|
6
6
|
}
|
|
@@ -1,54 +1,46 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Typography as
|
|
4
|
-
const
|
|
5
|
-
text:
|
|
6
|
-
speed:
|
|
7
|
-
cursor:
|
|
8
|
-
cursorBlinking:
|
|
9
|
-
loop:
|
|
10
|
-
deleteSpeed:
|
|
11
|
-
delay:
|
|
12
|
-
...
|
|
1
|
+
import { j as p } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as r, useEffect as j } from "react";
|
|
3
|
+
import { Typography as k, Box as D } from "@mui/material";
|
|
4
|
+
const b = ({
|
|
5
|
+
text: s,
|
|
6
|
+
speed: l = 100,
|
|
7
|
+
cursor: T = "|",
|
|
8
|
+
cursorBlinking: g = !0,
|
|
9
|
+
loop: c = !1,
|
|
10
|
+
deleteSpeed: x = 50,
|
|
11
|
+
delay: f = 1500,
|
|
12
|
+
...h
|
|
13
13
|
}) => {
|
|
14
|
-
const [n,
|
|
15
|
-
return
|
|
16
|
-
if (!
|
|
17
|
-
const
|
|
14
|
+
const [n, u] = r(""), [i, m] = r(0), [o, y] = r(!1), [d, A] = r(0), a = Array.isArray(s) ? s : [s], t = a[d] || "";
|
|
15
|
+
return j(() => {
|
|
16
|
+
if (!t) return;
|
|
17
|
+
const I = setTimeout(
|
|
18
18
|
() => {
|
|
19
|
-
|
|
19
|
+
o ? n.length > 0 ? u((e) => e.slice(0, -1)) : (y(!1), m(0), A((e) => (e + 1) % a.length)) : i < t.length ? (u((e) => e + t[i]), m((e) => e + 1)) : c && setTimeout(() => y(!0), f);
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
o ? x : l
|
|
22
22
|
);
|
|
23
|
-
return () => clearTimeout(
|
|
24
|
-
}, [i,
|
|
23
|
+
return () => clearTimeout(I);
|
|
24
|
+
}, [i, o, t, c, l, x, f, n, a.length]), /* @__PURE__ */ p.jsxs(k, { ...h, children: [
|
|
25
25
|
n,
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
26
|
+
/* @__PURE__ */ p.jsx(
|
|
27
|
+
D,
|
|
28
28
|
{
|
|
29
29
|
component: "span",
|
|
30
30
|
sx: {
|
|
31
|
-
animation:
|
|
31
|
+
animation: g ? "blink 1s infinite" : "none",
|
|
32
32
|
"@keyframes blink": {
|
|
33
33
|
"0%, 50%": { opacity: 1 },
|
|
34
34
|
"51%, 100%": { opacity: 0 }
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
children:
|
|
37
|
+
children: T
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] });
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
try {
|
|
44
|
-
o.displayName = "STypewriterText", o.__docgenInfo = { description: "An animated text component that creates a typewriter effect with customizable speed and looping.", displayName: "STypewriterText", props: { text: { defaultValue: null, description: "The text to display with typewriter effect. Can be a single string or array of strings for sequential display.", name: "text", required: !0, type: { name: "string | string[]" } }, speed: { defaultValue: { value: "100" }, description: "Speed of typing animation in milliseconds per character", name: "speed", required: !1, type: { name: "number" } }, cursor: { defaultValue: { value: "|" }, description: "Character to display as the typing cursor", name: "cursor", required: !1, type: { name: "string" } }, cursorBlinking: { defaultValue: { value: "true" }, description: "Whether the cursor should blink", name: "cursorBlinking", required: !1, type: { name: "boolean" } }, loop: { defaultValue: { value: "false" }, description: "Whether to loop the animation continuously", name: "loop", required: !1, type: { name: "boolean" } }, deleteSpeed: { defaultValue: { value: "50" }, description: "Speed of deletion animation in milliseconds per character (when looping)", name: "deleteSpeed", required: !1, type: { name: "number" } }, delay: { defaultValue: { value: "1500" }, description: "Delay in milliseconds before deleting text (when looping)", name: "delay", required: !1, type: { name: "number" } } } };
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
try {
|
|
48
|
-
stypewritertext.displayName = "stypewritertext", stypewritertext.__docgenInfo = { description: "An animated text component that creates a typewriter effect with customizable speed and looping.", displayName: "stypewritertext", props: { text: { defaultValue: null, description: "The text to display with typewriter effect. Can be a single string or array of strings for sequential display.", name: "text", required: !0, type: { name: "string | string[]" } }, speed: { defaultValue: { value: "100" }, description: "Speed of typing animation in milliseconds per character", name: "speed", required: !1, type: { name: "number" } }, cursor: { defaultValue: { value: "|" }, description: "Character to display as the typing cursor", name: "cursor", required: !1, type: { name: "string" } }, cursorBlinking: { defaultValue: { value: "true" }, description: "Whether the cursor should blink", name: "cursorBlinking", required: !1, type: { name: "boolean" } }, loop: { defaultValue: { value: "false" }, description: "Whether to loop the animation continuously", name: "loop", required: !1, type: { name: "boolean" } }, deleteSpeed: { defaultValue: { value: "50" }, description: "Speed of deletion animation in milliseconds per character (when looping)", name: "deleteSpeed", required: !1, type: { name: "number" } }, delay: { defaultValue: { value: "1500" }, description: "Delay in milliseconds before deleting text (when looping)", name: "delay", required: !1, type: { name: "number" } } } };
|
|
49
|
-
} catch {
|
|
50
|
-
}
|
|
42
|
+
b.displayName = "STypewriterText";
|
|
51
43
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
b as STypewriterText,
|
|
45
|
+
b as default
|
|
54
46
|
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { SZoomImage as
|
|
2
|
-
try {
|
|
3
|
-
szoomimage.displayName = "szoomimage", szoomimage.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "szoomimage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
|
|
4
|
-
} catch {
|
|
5
|
-
}
|
|
6
|
-
try {
|
|
7
|
-
SZoomImageProps.displayName = "SZoomImageProps", SZoomImageProps.__docgenInfo = { description: "Props interface for SZoomImage component", displayName: "SZoomImageProps", props: {} };
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
1
|
+
import { SZoomImage as e } from "./s-zoom-image.js";
|
|
10
2
|
export {
|
|
11
|
-
|
|
3
|
+
e as default
|
|
12
4
|
};
|
|
@@ -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
|
+
}
|