@solostylist/ui-kit 1.0.167 → 1.0.169
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/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +187 -173
- package/dist/s-accordion/index.js +2 -2
- package/dist/s-accordion/s-accordion.d.ts +17 -1
- package/dist/s-accordion/s-accordion.js +252 -238
- package/dist/s-action-overlay/index.js +1 -1
- package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
- package/dist/s-action-overlay/s-action-overlay.js +67 -55
- package/dist/s-ai-tool-bar/index.d.ts +2 -0
- package/dist/s-ai-tool-bar/index.js +3 -2
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +33 -22
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +295 -247
- package/dist/s-autocomplete/index.js +2 -2
- package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
- package/dist/s-autocomplete/s-autocomplete.js +25 -17
- package/dist/s-avatar/index.js +2 -2
- package/dist/s-avatar/s-avatar.d.ts +16 -1
- package/dist/s-avatar/s-avatar.js +23 -10
- package/dist/s-blur-text/index.js +2 -2
- package/dist/s-blur-text/s-blur-text.d.ts +4 -13
- package/dist/s-blur-text/s-blur-text.js +57 -51
- package/dist/s-breadcrumbs/index.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
- package/dist/s-button/index.js +2 -2
- package/dist/s-button/s-button.d.ts +7 -1
- package/dist/s-button/s-button.js +15 -5
- package/dist/s-button-link/index.js +2 -2
- package/dist/s-button-link/s-button-link.d.ts +12 -26
- package/dist/s-button-link/s-button-link.js +36 -26
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +11 -1
- package/dist/s-carousel/s-carousel.js +233 -223
- package/dist/s-category-card/index.js +2 -2
- package/dist/s-category-card/s-category-card.d.ts +28 -1
- package/dist/s-category-card/s-category-card.js +77 -58
- package/dist/s-chat-input/index.js +2 -2
- package/dist/s-chat-input/s-chat-input.d.ts +12 -1
- package/dist/s-chat-input/s-chat-input.js +92 -82
- package/dist/s-chat-message/index.js +2 -2
- package/dist/s-chat-message/s-chat-message.d.ts +22 -1
- package/dist/s-chat-message/s-chat-message.js +144 -133
- package/dist/s-checkbox/index.js +2 -2
- package/dist/s-checkbox/s-checkbox.d.ts +2 -15
- package/dist/s-checkbox/s-checkbox.js +20 -10
- package/dist/s-chip/index.js +2 -2
- package/dist/s-chip/s-chip.d.ts +7 -1
- package/dist/s-chip/s-chip.js +15 -5
- package/dist/s-chips/index.js +2 -2
- package/dist/s-chips/s-chips.d.ts +5 -18
- package/dist/s-chips/s-chips.js +56 -41
- package/dist/s-comment-message/index.js +2 -2
- package/dist/s-comment-message/s-comment-message.d.ts +26 -1
- package/dist/s-comment-message/s-comment-message.js +95 -89
- package/dist/s-copyable-text/index.js +1 -1
- package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
- package/dist/s-copyable-text/s-copyable-text.js +31 -21
- package/dist/s-countdown/index.d.ts +3 -2
- package/dist/s-countdown/index.js +4 -3
- package/dist/s-countdown/s-count-box.d.ts +39 -0
- package/dist/s-countdown/s-count-box.js +112 -0
- package/dist/s-countdown/s-count-down.d.ts +6 -50
- package/dist/s-countdown/s-count-down.js +110 -175
- package/dist/s-data-table/index.js +2 -2
- package/dist/s-data-table/s-data-table.d.ts +9 -65
- package/dist/s-data-table/s-data-table.js +381 -371
- package/dist/s-date-picker/index.js +2 -2
- package/dist/s-date-picker/s-date-picker.d.ts +6 -17
- package/dist/s-date-picker/s-date-picker.js +124 -107
- package/dist/s-datetime-picker/index.js +2 -2
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
- package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
- package/dist/s-dialog/index.js +2 -2
- package/dist/s-dialog/s-dialog.d.ts +3 -16
- package/dist/s-dialog/s-dialog.js +32 -23
- package/dist/s-dialog-confirm/index.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
- package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
- package/dist/s-dialog-message/index.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
- package/dist/s-dialog-message/s-dialog-message.js +45 -38
- package/dist/s-empty/index.js +2 -2
- package/dist/s-empty/s-empty.d.ts +5 -20
- package/dist/s-empty/s-empty.js +14 -4
- package/dist/s-error/index.js +2 -2
- package/dist/s-error/s-error.d.ts +5 -20
- package/dist/s-error/s-error.js +16 -6
- package/dist/s-error-layout/index.js +2 -2
- package/dist/s-error-layout/s-error-layout.d.ts +6 -1
- package/dist/s-error-layout/s-error-layout.js +60 -51
- package/dist/s-file-dropzone/index.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
- package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
- package/dist/s-file-icon/index.js +2 -2
- package/dist/s-file-icon/s-file-icon.d.ts +5 -25
- package/dist/s-file-icon/s-file-icon.js +14 -8
- package/dist/s-flex-box/index.js +2 -2
- package/dist/s-flex-box/s-flex-box.d.ts +10 -1
- package/dist/s-flex-box/s-flex-box.js +14 -4
- package/dist/s-form/index.js +2 -2
- package/dist/s-form/s-form.d.ts +5 -14
- package/dist/s-form/s-form.js +19 -9
- package/dist/s-gallery/index.js +33 -3
- package/dist/s-gallery/s-gallery.d.ts +3 -36
- package/dist/s-gallery/s-gallery.js +108 -78
- package/dist/s-glow-button/s-glow-button.d.ts +6 -42
- package/dist/s-glow-button/s-glow-button.js +29 -47
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/index.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
- package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
- package/dist/s-i18n-provider/index.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
- package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
- package/dist/s-icon-button/index.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -19
- package/dist/s-icon-button/s-icon-button.js +14 -4
- package/dist/s-image-comparison/s-image-comparison.js +50 -45
- package/dist/s-image-modal/index.js +3 -3
- package/dist/s-image-modal/s-image-modal.d.ts +4 -20
- package/dist/s-image-modal/s-image-modal.js +150 -135
- package/dist/s-item-not-found/index.js +2 -2
- package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
- package/dist/s-item-not-found/s-item-not-found.js +21 -10
- package/dist/s-label/index.js +2 -2
- package/dist/s-label/s-label.d.ts +9 -25
- package/dist/s-label/s-label.js +19 -9
- package/dist/s-language-switcher/index.js +3 -3
- package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
- package/dist/s-language-switcher/s-language-switcher.js +137 -115
- package/dist/s-lazy-image/index.js +10 -2
- package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
- package/dist/s-lazy-image/s-lazy-image.js +53 -58
- package/dist/s-localization-provider/index.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
- package/dist/s-localization-provider/s-localization-provider.js +157 -149
- package/dist/s-moving-border/index.js +2 -2
- package/dist/s-moving-border/s-moving-border.d.ts +3 -33
- package/dist/s-moving-border/s-moving-border.js +65 -55
- package/dist/s-multi-select/index.js +2 -2
- package/dist/s-multi-select/s-multi-select.d.ts +5 -15
- package/dist/s-multi-select/s-multi-select.js +54 -45
- package/dist/s-no-ssr/index.js +2 -2
- package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
- package/dist/s-no-ssr/s-no-ssr.js +21 -11
- package/dist/s-overlay-scrollbar/index.js +2 -2
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
- package/dist/s-pagination/index.js +2 -2
- package/dist/s-pagination/s-pagination.d.ts +5 -23
- package/dist/s-pagination/s-pagination.js +17 -11
- package/dist/s-pixel-reveal/index.js +2 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +15 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.js +83 -78
- package/dist/s-radial-pulse-animate/index.js +2 -2
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
- package/dist/s-rating/index.js +2 -2
- package/dist/s-rating/s-rating.d.ts +7 -1
- package/dist/s-rating/s-rating.js +15 -5
- package/dist/s-review/index.js +2 -2
- package/dist/s-review/s-review.d.ts +25 -1
- package/dist/s-review/s-review.js +104 -97
- package/dist/s-scroll-reveal/index.js +2 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
- package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
- package/dist/s-scroll-to-top/index.js +2 -2
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
- package/dist/s-scroll-velocity/index.d.ts +6 -0
- package/dist/s-scroll-velocity/index.js +8 -0
- package/dist/s-scroll-velocity/package.json +5 -0
- package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +24 -0
- package/dist/s-scroll-velocity/s-scroll-velocity.js +22 -0
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +20 -0
- package/dist/s-scroll-velocity/scroll-velocity-container.js +40 -0
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +27 -0
- package/dist/s-scroll-velocity/scroll-velocity-row.js +131 -0
- package/dist/s-select/index.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -22
- package/dist/s-select/s-select.js +76 -72
- package/dist/s-select-list/index.js +2 -2
- package/dist/s-select-list/s-select-list.d.ts +16 -19
- package/dist/s-select-list/s-select-list.js +33 -28
- package/dist/s-skeleton/index.js +2 -2
- package/dist/s-skeleton/s-skeleton.d.ts +6 -22
- package/dist/s-skeleton/s-skeleton.js +28 -18
- package/dist/s-snackbar-message/index.js +4 -4
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
- package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
- package/dist/s-spotlight-cursor/index.js +2 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
- package/dist/s-stripe/index.d.ts +4 -1
- package/dist/s-stripe/index.js +7 -4
- package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
- package/dist/s-stripe/s-stripe-cvc.js +15 -0
- package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
- package/dist/s-stripe/s-stripe-expiry.js +15 -0
- package/dist/s-stripe/s-stripe-number.d.ts +8 -0
- package/dist/s-stripe/s-stripe-number.js +15 -0
- package/dist/s-stripe/s-stripe.d.ts +6 -85
- package/dist/s-stripe/s-stripe.js +24 -27
- package/dist/s-stripe/stripe-input.js +22 -18
- package/dist/s-tabs/index.js +6 -6
- package/dist/s-tabs/s-tab-panel.d.ts +11 -1
- package/dist/s-tabs/s-tab-panel.js +25 -16
- package/dist/s-tabs/s-tab.js +9 -5
- package/dist/s-tabs/s-tabs.d.ts +24 -3
- package/dist/s-tabs/s-tabs.js +34 -25
- package/dist/s-text-editor/index.js +3 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
- package/dist/s-text-editor/s-text-editor.d.ts +13 -11
- package/dist/s-text-editor/s-text-editor.js +44 -30
- package/dist/s-text-field/index.js +2 -2
- package/dist/s-text-field/s-text-field.d.ts +6 -15
- package/dist/s-text-field/s-text-field.js +38 -28
- package/dist/s-text-shimmer/index.js +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
- package/dist/s-text-truncation/index.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
- package/dist/s-text-truncation/s-text-truncation.js +34 -20
- package/dist/s-theme-demo/s-theme-demo.js +238 -223
- package/dist/s-theme-provider/index.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
- package/dist/s-theme-provider/s-theme-provider.js +44 -34
- package/dist/s-theme-switch/s-theme-switch.js +23 -19
- package/dist/s-tip/index.js +2 -2
- package/dist/s-tip/s-tip.d.ts +5 -22
- package/dist/s-tip/s-tip.js +22 -12
- package/dist/s-two-pane-layout/index.js +10 -2
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
- package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
- package/dist/s-typewriter-text/index.js +2 -2
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
- package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
- package/dist/s-zoom-image/index.js +10 -2
- package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
- package/dist/s-zoom-image/s-zoom-image.js +62 -52
- package/dist/theme/components/alert.d.ts +1436 -1436
- package/dist/theme/components/button.d.ts +2150 -2150
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
- package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
- package/package.json +23 -6
|
@@ -15,21 +15,9 @@ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMo
|
|
|
15
15
|
/** Custom theme object to merge with internal theme */
|
|
16
16
|
theme?: Theme;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* - System mode default with light/dark/system mode support
|
|
24
|
-
* - Comprehensive component customizations
|
|
25
|
-
* - Custom color schemes, typography, shadows, and shapes
|
|
26
|
-
* - Modular theme customizations from separate files
|
|
27
|
-
* - Theme merging capability for external overrides
|
|
28
|
-
* - Memoized theme creation for performance
|
|
29
|
-
* - Transition disabling for smoother mode switching
|
|
30
|
-
*
|
|
31
|
-
* @param props - SThemeProviderProps with theme configuration
|
|
32
|
-
* @returns JSX.Element - ThemeProvider with custom design system theme
|
|
33
|
-
*/
|
|
34
|
-
declare const SThemeProvider: ({ children, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps) => React.JSX.Element;
|
|
18
|
+
/** Central theme provider for the design system. */
|
|
19
|
+
export declare const SThemeProvider: {
|
|
20
|
+
({ children, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps): React.JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
35
23
|
export default SThemeProvider;
|
|
@@ -1,60 +1,70 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { createTheme as
|
|
4
|
-
import { components as
|
|
5
|
-
import { dataDisplayCustomizations as
|
|
1
|
+
import { j as a } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { createTheme as d, ThemeProvider as u } from "@mui/material";
|
|
4
|
+
import { components as p } from "../theme/components/components.js";
|
|
5
|
+
import { dataDisplayCustomizations as c } 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 f } from "../theme/customizations/inputs.js";
|
|
8
|
+
import { navigationCustomizations as y } from "../theme/customizations/navigation.js";
|
|
9
|
+
import { surfacesCustomizations as v } from "../theme/customizations/surfaces.js";
|
|
10
|
+
import { shape as C, shadows as g, typography as _, colorSchemes as T } from "../theme/theme-primitives.js";
|
|
11
|
+
const o = ({
|
|
12
|
+
children: e,
|
|
13
|
+
disableCustomTheme: t,
|
|
14
|
+
themeComponents: r,
|
|
15
|
+
defaultMode: s = "system",
|
|
16
16
|
// System preference by default
|
|
17
|
-
theme:
|
|
18
|
-
...
|
|
17
|
+
theme: n,
|
|
18
|
+
...i
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
20
|
+
const l = m.useMemo(() => t ? {} : d({
|
|
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: T,
|
|
28
28
|
// Light/dark color schemes
|
|
29
|
-
typography:
|
|
29
|
+
typography: _,
|
|
30
30
|
// Custom typography scales
|
|
31
31
|
shadows: g,
|
|
32
32
|
// Custom shadow definitions
|
|
33
|
-
shape:
|
|
33
|
+
shape: C,
|
|
34
34
|
// Border radius and shape settings
|
|
35
35
|
components: {
|
|
36
36
|
// Merge all component customizations
|
|
37
|
-
...l,
|
|
38
|
-
...u,
|
|
39
|
-
...h,
|
|
40
|
-
...x,
|
|
41
|
-
...d,
|
|
42
37
|
...f,
|
|
43
|
-
...
|
|
38
|
+
...c,
|
|
39
|
+
...h,
|
|
40
|
+
...y,
|
|
41
|
+
...v,
|
|
42
|
+
...p,
|
|
43
|
+
...r
|
|
44
44
|
// Allow external overrides
|
|
45
45
|
}
|
|
46
|
-
}), [
|
|
47
|
-
return
|
|
48
|
-
|
|
46
|
+
}), [t, r]);
|
|
47
|
+
return t ? /* @__PURE__ */ a.jsx(m.Fragment, { children: e }) : /* @__PURE__ */ a.jsx(
|
|
48
|
+
u,
|
|
49
49
|
{
|
|
50
50
|
disableTransitionOnChange: !0,
|
|
51
|
-
...
|
|
52
|
-
theme: { ...
|
|
53
|
-
defaultMode:
|
|
54
|
-
children:
|
|
51
|
+
...i,
|
|
52
|
+
theme: { ...l, ...n },
|
|
53
|
+
defaultMode: s,
|
|
54
|
+
children: e
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
};
|
|
58
|
+
o.displayName = "SThemeProvider";
|
|
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: '"system"' }, { value: '"light"' }, { value: '"dark"' }] } }, 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: '"system"' }, { value: '"light"' }, { value: '"dark"' }] } }, theme: { defaultValue: null, description: "Custom theme object to merge with internal theme", name: "theme", required: !1, type: { name: "Theme" } } } };
|
|
65
|
+
} catch {
|
|
66
|
+
}
|
|
58
67
|
export {
|
|
59
|
-
|
|
68
|
+
o as SThemeProvider,
|
|
69
|
+
o as default
|
|
60
70
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { useRef as g, useCallback as l } from "react";
|
|
3
3
|
import { IconButton as w } from "@mui/material";
|
|
4
|
-
import { flushSync as
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
4
|
+
import { flushSync as y } from "react-dom";
|
|
5
|
+
import { c as m } from "../createSvgIcon-DxwgGAVe.js";
|
|
6
|
+
const M = m(/* @__PURE__ */ e.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"), v = m(/* @__PURE__ */ e.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
|
|
10
|
+
}), "LightMode"), V = ({ mode: t, setMode: s, sx: d }) => {
|
|
11
|
+
const n = g(null), u = t === "dark", a = l(() => {
|
|
12
12
|
setTimeout(() => {
|
|
13
|
-
|
|
13
|
+
s == null || s(t === "dark" ? "light" : "dark");
|
|
14
14
|
}, 0);
|
|
15
|
-
}, [
|
|
16
|
-
if (!
|
|
17
|
-
|
|
15
|
+
}, [t, s]), h = l(async () => {
|
|
16
|
+
if (!n.current || !document.startViewTransition) {
|
|
17
|
+
a();
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
await document.startViewTransition(() => {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
y(() => {
|
|
22
|
+
a();
|
|
23
23
|
});
|
|
24
24
|
}).ready;
|
|
25
|
-
const { top:
|
|
25
|
+
const { top: c, left: o, width: p, height: x } = n.current.getBoundingClientRect(), i = o + p / 2, r = c + x / 2, f = Math.hypot(Math.max(o, window.innerWidth - o), Math.max(c, window.innerHeight - c));
|
|
26
26
|
document.documentElement.animate(
|
|
27
27
|
{
|
|
28
|
-
clipPath: [`circle(0px at ${
|
|
28
|
+
clipPath: [`circle(0px at ${i}px ${r}px)`, `circle(${f}px at ${i}px ${r}px)`]
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
duration: 700,
|
|
@@ -33,9 +33,13 @@ const k = h(/* @__PURE__ */ t.jsx("path", {
|
|
|
33
33
|
pseudoElement: "::view-transition-new(root)"
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
|
-
}, [
|
|
37
|
-
return /* @__PURE__ */
|
|
36
|
+
}, [a]);
|
|
37
|
+
return /* @__PURE__ */ e.jsx(w, { ref: n, onClick: h, sx: d, children: u ? /* @__PURE__ */ e.jsx(v, {}) : /* @__PURE__ */ e.jsx(M, {}) });
|
|
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: '"system"' }, { value: '"light"' }, { value: '"dark"' }] } }, 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
|
+
}
|
|
39
43
|
export {
|
|
40
|
-
|
|
44
|
+
V as default
|
|
41
45
|
};
|
package/dist/s-tip/index.js
CHANGED
package/dist/s-tip/s-tip.d.ts
CHANGED
|
@@ -7,27 +7,10 @@ export interface STipProps {
|
|
|
7
7
|
message: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* Features a lightbulb icon and "Tip." prefix for clear visual identification.
|
|
12
|
-
*
|
|
13
|
-
* Key features:
|
|
14
|
-
* - Distinctive lightbulb icon for immediate recognition
|
|
15
|
-
* - Bold "Tip." prefix for clear categorization
|
|
16
|
-
* - Consistent background and text coloring
|
|
17
|
-
* - Rounded corners for modern appearance
|
|
18
|
-
* - Horizontal layout with proper spacing
|
|
19
|
-
* - CSS custom properties for theme integration
|
|
20
|
-
* - Compact 16px icon size for subtle presence
|
|
21
|
-
*
|
|
22
|
-
* Common use cases:
|
|
23
|
-
* - Form hints and guidance
|
|
24
|
-
* - Feature explanations
|
|
25
|
-
* - Best practice suggestions
|
|
26
|
-
* - User onboarding tips
|
|
27
|
-
* - Contextual help information
|
|
28
|
-
*
|
|
29
|
-
* @param props - STipProps with the message to display
|
|
30
|
-
* @returns JSX.Element - Styled tip component with icon and message
|
|
10
|
+
* A simple tip component that displays helpful information with a lightbulb icon.
|
|
31
11
|
*/
|
|
32
|
-
declare const STip:
|
|
12
|
+
export declare const STip: {
|
|
13
|
+
({ message }: STipProps): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
33
16
|
export default STip;
|
package/dist/s-tip/s-tip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c } from "../createSvgIcon-DxwgGAVe.js";
|
|
3
|
-
import { S as
|
|
4
|
-
import { T as
|
|
5
|
-
const
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { c as a } from "../createSvgIcon-DxwgGAVe.js";
|
|
3
|
+
import { S as r } from "../Stack-Cq2r2NmC.js";
|
|
4
|
+
import { T as s } from "../Typography-C8jwvSWe.js";
|
|
5
|
+
const o = a(/* @__PURE__ */ e.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"), i = ({ message: t }) => /* @__PURE__ */ e.jsxs(
|
|
8
|
+
r,
|
|
9
9
|
{
|
|
10
10
|
direction: "row",
|
|
11
11
|
spacing: 1,
|
|
@@ -18,15 +18,25 @@ const s = c(/* @__PURE__ */ t.jsx("path", {
|
|
|
18
18
|
color: "text.secondary"
|
|
19
19
|
},
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ e.jsx(o, { sx: { fontSize: 16 } }),
|
|
22
|
+
/* @__PURE__ */ e.jsxs(s, { variant: "body2", children: [
|
|
23
|
+
/* @__PURE__ */ e.jsx(s, { component: "span", sx: { fontWeight: "bold" }, variant: "inherit", children: "Tip." }),
|
|
24
24
|
" ",
|
|
25
|
-
|
|
25
|
+
t
|
|
26
26
|
] })
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
+
i.displayName = "STip";
|
|
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
39
|
export {
|
|
31
|
-
|
|
40
|
+
i as STip,
|
|
41
|
+
i as default
|
|
32
42
|
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STwoPaneLayout as n } from "./s-two-pane-layout.js";
|
|
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: '"left"' }, { value: '"right"' }] } }, 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
|
+
}
|
|
2
10
|
export {
|
|
3
|
-
|
|
11
|
+
n as default
|
|
4
12
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the STwoPaneLayout component
|
|
5
|
+
*/
|
|
3
6
|
export interface STwoPaneLayoutProps {
|
|
4
7
|
/** Content to display in the sidebar pane */
|
|
5
8
|
sidebar: ReactNode;
|
|
@@ -44,5 +47,8 @@ export interface STwoPaneLayoutProps {
|
|
|
44
47
|
/** Padding for content header. Default: 2 */
|
|
45
48
|
contentHeaderPadding?: number | string;
|
|
46
49
|
}
|
|
47
|
-
|
|
50
|
+
/**
|
|
51
|
+
* A flexible two-pane layout component with customizable sidebar and content areas.
|
|
52
|
+
*/
|
|
53
|
+
export declare const STwoPaneLayout: FC<STwoPaneLayoutProps>;
|
|
48
54
|
export default STwoPaneLayout;
|
|
@@ -1,71 +1,81 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Box as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
sidebar:
|
|
7
|
-
content:
|
|
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:
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { Box as a } from "@mui/material";
|
|
3
|
+
import { SFlexBox as D } from "../s-flex-box/s-flex-box.js";
|
|
4
|
+
import { SOverlayScrollbar as h } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
|
|
5
|
+
const r = ({
|
|
6
|
+
sidebar: t,
|
|
7
|
+
content: l,
|
|
8
|
+
sidebarWidth: x = 280,
|
|
9
|
+
height: y = "calc(100vh - 65px)",
|
|
10
|
+
containerSx: S,
|
|
11
|
+
sidebarSx: g,
|
|
12
|
+
contentSx: P,
|
|
13
|
+
sidebarHeaderSx: q,
|
|
14
|
+
contentHeaderSx: V,
|
|
15
|
+
sidebarScrollSx: d,
|
|
16
|
+
contentScrollSx: i,
|
|
17
|
+
disableBorder: o = !1,
|
|
18
|
+
sidebarHeader: s,
|
|
19
|
+
contentHeader: u,
|
|
20
|
+
enableSidebarScroll: v = !0,
|
|
21
|
+
enableContentScroll: c = !1,
|
|
22
|
+
sidebarPosition: n = "left",
|
|
23
|
+
sidebarPadding: f = 1,
|
|
24
|
+
contentPadding: m = 1,
|
|
25
|
+
sidebarHeaderPadding: C = 2,
|
|
26
|
+
contentHeaderPadding: H = 2
|
|
27
27
|
}) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const p = /* @__PURE__ */ e.jsxs(
|
|
29
|
+
a,
|
|
30
30
|
{
|
|
31
31
|
sx: {
|
|
32
|
-
width:
|
|
33
|
-
borderRight: !
|
|
34
|
-
borderLeft: !
|
|
32
|
+
width: x,
|
|
33
|
+
borderRight: !o && n === "left" ? 1 : 0,
|
|
34
|
+
borderLeft: !o && n === "right" ? 1 : 0,
|
|
35
35
|
borderColor: "divider",
|
|
36
36
|
display: "flex",
|
|
37
37
|
flexDirection: "column",
|
|
38
|
-
...
|
|
38
|
+
...g
|
|
39
39
|
},
|
|
40
40
|
children: [
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */
|
|
41
|
+
s && /* @__PURE__ */ e.jsx(a, { sx: { p: C, borderBottom: 1, borderColor: "divider", ...q }, children: s }),
|
|
42
|
+
/* @__PURE__ */ e.jsx(a, { sx: { flex: 1, minHeight: 0 }, children: v ? /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(a, { sx: { p: f, ...d }, children: t }) }) : /* @__PURE__ */ e.jsx(a, { sx: { p: f, height: "100%", overflow: "hidden", ...d }, children: t }) })
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
|
-
),
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */
|
|
45
|
+
), b = /* @__PURE__ */ e.jsxs(a, { sx: { flex: 1, display: "flex", flexDirection: "column", ...P }, height: "100%", children: [
|
|
46
|
+
u && /* @__PURE__ */ e.jsx(a, { sx: { p: H, borderBottom: 1, borderColor: "divider", ...V }, children: u }),
|
|
47
|
+
/* @__PURE__ */ e.jsx(a, { sx: { flex: 1, overflow: c ? "auto" : "hidden" }, children: c ? /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(a, { sx: { p: m, ...i }, children: l }) }) : /* @__PURE__ */ e.jsx(a, { sx: { p: m, height: "100%", ...i }, children: l }) })
|
|
48
48
|
] });
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
|
|
49
|
+
return /* @__PURE__ */ e.jsx(
|
|
50
|
+
D,
|
|
51
51
|
{
|
|
52
52
|
sx: {
|
|
53
|
-
height:
|
|
53
|
+
height: y,
|
|
54
54
|
flexDirection: "row",
|
|
55
55
|
width: "100%",
|
|
56
56
|
overflow: "hidden",
|
|
57
|
-
...
|
|
57
|
+
...S
|
|
58
58
|
},
|
|
59
|
-
children:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
] }) : /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
children: n === "left" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
60
|
+
p,
|
|
61
|
+
b
|
|
62
|
+
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
63
|
+
b,
|
|
64
|
+
p
|
|
65
65
|
] })
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
};
|
|
69
|
+
r.displayName = "STwoPaneLayout";
|
|
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: '"left"' }, { value: '"right"' }] } }, 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: '"left"' }, { value: '"right"' }] } }, 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
78
|
export {
|
|
70
|
-
|
|
79
|
+
r as STwoPaneLayout,
|
|
80
|
+
r as default
|
|
71
81
|
};
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import { TypographyProps } from '@mui/material';
|
|
2
|
+
/**
|
|
3
|
+
* Props interface for STypewriterText component
|
|
4
|
+
*/
|
|
2
5
|
export interface STypewriterTextProps extends Omit<TypographyProps, 'children'> {
|
|
6
|
+
/** The text to display with typewriter effect. Can be a single string or array of strings for sequential display. */
|
|
3
7
|
text: string | string[];
|
|
8
|
+
/** Speed of typing animation in milliseconds per character */
|
|
4
9
|
speed?: number;
|
|
10
|
+
/** Character to display as the typing cursor */
|
|
5
11
|
cursor?: string;
|
|
12
|
+
/** Whether the cursor should blink */
|
|
6
13
|
cursorBlinking?: boolean;
|
|
14
|
+
/** Whether to loop the animation continuously */
|
|
7
15
|
loop?: boolean;
|
|
16
|
+
/** Speed of deletion animation in milliseconds per character (when looping) */
|
|
8
17
|
deleteSpeed?: number;
|
|
18
|
+
/** Delay in milliseconds before deleting text (when looping) */
|
|
9
19
|
delay?: number;
|
|
10
20
|
}
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* An animated text component that creates a typewriter effect with customizable speed and looping.
|
|
23
|
+
*/
|
|
24
|
+
export declare const STypewriterText: {
|
|
25
|
+
({ text, speed, cursor, cursorBlinking, loop, deleteSpeed, delay, ...typographyProps }: STypewriterTextProps): React.JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
12
28
|
export default STypewriterText;
|
|
@@ -1,44 +1,54 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Typography as
|
|
4
|
-
|
|
5
|
-
text:
|
|
6
|
-
speed:
|
|
7
|
-
cursor:
|
|
8
|
-
cursorBlinking:
|
|
9
|
-
loop:
|
|
10
|
-
deleteSpeed:
|
|
11
|
-
delay:
|
|
12
|
-
...
|
|
13
|
-
}) {
|
|
14
|
-
const [
|
|
15
|
-
return
|
|
16
|
-
if (!
|
|
17
|
-
const
|
|
1
|
+
import { j as h } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { useState as a, useEffect as _ } from "react";
|
|
3
|
+
import { Typography as V, Box as v } from "@mui/material";
|
|
4
|
+
const s = ({
|
|
5
|
+
text: t,
|
|
6
|
+
speed: p = 100,
|
|
7
|
+
cursor: g = "|",
|
|
8
|
+
cursorBlinking: x = !0,
|
|
9
|
+
loop: u = !1,
|
|
10
|
+
deleteSpeed: d = 50,
|
|
11
|
+
delay: c = 1500,
|
|
12
|
+
...b
|
|
13
|
+
}) => {
|
|
14
|
+
const [n, m] = a(""), [i, y] = a(0), [l, f] = a(!1), [w, T] = a(0), o = Array.isArray(t) ? t : [t], r = o[w] || "";
|
|
15
|
+
return _(() => {
|
|
16
|
+
if (!r) return;
|
|
17
|
+
const q = setTimeout(
|
|
18
18
|
() => {
|
|
19
|
-
|
|
19
|
+
l ? n.length > 0 ? m((e) => e.slice(0, -1)) : (f(!1), y(0), T((e) => (e + 1) % o.length)) : i < r.length ? (m((e) => e + r[i]), y((e) => e + 1)) : u && setTimeout(() => f(!0), c);
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
l ? d : p
|
|
22
22
|
);
|
|
23
|
-
return () => clearTimeout(
|
|
24
|
-
}, [i,
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
23
|
+
return () => clearTimeout(q);
|
|
24
|
+
}, [i, l, r, u, p, d, c, n, o.length]), /* @__PURE__ */ h.jsxs(V, { component: "span", ...b, children: [
|
|
25
|
+
n,
|
|
26
|
+
/* @__PURE__ */ h.jsx(
|
|
27
|
+
v,
|
|
28
28
|
{
|
|
29
29
|
component: "span",
|
|
30
30
|
sx: {
|
|
31
|
-
animation:
|
|
31
|
+
animation: x ? "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: g
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] });
|
|
41
|
+
};
|
|
42
|
+
s.displayName = "STypewriterText";
|
|
43
|
+
try {
|
|
44
|
+
s.displayName = "STypewriterText", s.__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 {
|
|
41
50
|
}
|
|
42
51
|
export {
|
|
43
|
-
|
|
52
|
+
s as STypewriterText,
|
|
53
|
+
s as default
|
|
44
54
|
};
|