@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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SkeletonProps } from '@mui/material';
|
|
3
3
|
/**
|
|
4
|
-
* Props interface for SSkeleton component
|
|
5
|
-
* with enhanced component presets and customization options
|
|
4
|
+
* Props interface for SSkeleton component
|
|
6
5
|
*/
|
|
7
6
|
export interface SSkeletonProps extends Omit<SkeletonProps, 'variant' | 'height' | 'width' | 'component'> {
|
|
8
7
|
/** Visual variant of the skeleton */
|
|
@@ -17,25 +16,10 @@ export interface SSkeletonProps extends Omit<SkeletonProps, 'variant' | 'height'
|
|
|
17
16
|
component?: 'button' | 'checkbox' | 'radio-button' | 'avatar' | 'rounded-avatar' | 'icon-button' | 'typography' | 'title-typography';
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* Wraps Material-UI Skeleton with common UI element configurations for consistent loading states.
|
|
22
|
-
*
|
|
23
|
-
* Key features:
|
|
24
|
-
* - Pre-defined presets for common UI components (buttons, avatars, checkboxes, etc.)
|
|
25
|
-
* - Customizable dimensions and font sizes
|
|
26
|
-
* - All Material-UI Skeleton variants supported
|
|
27
|
-
* - Consistent sizing across the design system
|
|
28
|
-
* - Fallback to custom configuration when no preset is specified
|
|
29
|
-
*
|
|
30
|
-
* Component presets provide standardized skeleton sizes that match actual component dimensions:
|
|
31
|
-
* - button: 32px height, rounded variant
|
|
32
|
-
* - checkbox/radio-button: 24px square/circle
|
|
33
|
-
* - avatar: 54px square or 48px circle
|
|
34
|
-
* - icon-button: 32px circle
|
|
35
|
-
* - typography: Full width text or 200px title
|
|
36
|
-
*
|
|
37
|
-
* @param props - SSkeletonProps with preset options and Material-UI Skeleton props
|
|
38
|
-
* @returns JSX.Element - Configured skeleton based on preset or custom settings
|
|
19
|
+
* An enhanced skeleton loading component with pre-defined component presets for consistent loading states.
|
|
39
20
|
*/
|
|
40
|
-
declare const SSkeleton:
|
|
21
|
+
export declare const SSkeleton: {
|
|
22
|
+
({ variant, width, height, fontSize, component, ...props }: SSkeletonProps): React.JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
41
25
|
export default SSkeleton;
|
|
@@ -1,34 +1,44 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as t } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
2
|
import { Skeleton as a } from "@mui/material";
|
|
3
|
-
const
|
|
4
|
-
variant:
|
|
5
|
-
width:
|
|
3
|
+
const o = ({
|
|
4
|
+
variant: n = "text",
|
|
5
|
+
width: r = "100%",
|
|
6
6
|
height: u = 32,
|
|
7
|
-
fontSize:
|
|
8
|
-
component:
|
|
9
|
-
...
|
|
7
|
+
fontSize: i = "16px",
|
|
8
|
+
component: l,
|
|
9
|
+
...e
|
|
10
10
|
}) => {
|
|
11
|
-
switch (
|
|
11
|
+
switch (l) {
|
|
12
12
|
case "button":
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ t.jsx(a, { height: 32, variant: "rounded", width: r, ...e });
|
|
14
14
|
case "checkbox":
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ t.jsx(a, { height: 24, variant: "rounded", width: 24, ...e });
|
|
16
16
|
case "radio-button":
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t.jsx(a, { height: 24, variant: "circular", width: 24, ...e });
|
|
18
18
|
case "avatar":
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ t.jsx(a, { height: 54, variant: "rectangular", width: 54, ...e });
|
|
20
20
|
case "rounded-avatar":
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ t.jsx(a, { height: 48, variant: "circular", width: 48, ...e });
|
|
22
22
|
case "icon-button":
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ t.jsx(a, { height: 32, variant: "circular", width: 32, ...e });
|
|
24
24
|
case "typography":
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ t.jsx(a, { sx: { fontSize: i }, variant: "text", width: "100%", ...e });
|
|
26
26
|
case "title-typography":
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ t.jsx(a, { sx: { fontSize: i }, variant: "text", width: 200, ...e });
|
|
28
28
|
default:
|
|
29
|
-
return
|
|
29
|
+
return n === "text" ? /* @__PURE__ */ t.jsx(a, { sx: { fontSize: i }, variant: n, width: r, ...e }) : /* @__PURE__ */ t.jsx(a, { height: u, variant: n, width: r, ...e });
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
+
o.displayName = "SSkeleton";
|
|
33
|
+
try {
|
|
34
|
+
o.displayName = "SSkeleton", o.__docgenInfo = { description: "An enhanced skeleton loading component with pre-defined component presets for consistent loading states.", displayName: "SSkeleton", props: { variant: { defaultValue: { value: "text" }, description: "Visual variant of the skeleton", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } }, height: { defaultValue: { value: "32" }, description: "Height of the skeleton (number for px, string for CSS units)", name: "height", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Width of the skeleton (number for px, string for CSS units)", name: "width", required: !1, type: { name: "string | number" } }, fontSize: { defaultValue: { value: "16px" }, description: "Font size for text variant skeletons", name: "fontSize", required: !1, type: { name: "string | number" } }, component: { defaultValue: null, description: "Pre-defined component preset for common UI elements", name: "component", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"checkbox"' }, { value: '"typography"' }, { value: '"avatar"' }, { value: '"radio-button"' }, { value: '"rounded-avatar"' }, { value: '"icon-button"' }, { value: '"title-typography"' }] } } } };
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
try {
|
|
38
|
+
sskeleton.displayName = "sskeleton", sskeleton.__docgenInfo = { description: "An enhanced skeleton loading component with pre-defined component presets for consistent loading states.", displayName: "sskeleton", props: { variant: { defaultValue: { value: "text" }, description: "Visual variant of the skeleton", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } }, height: { defaultValue: { value: "32" }, description: "Height of the skeleton (number for px, string for CSS units)", name: "height", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Width of the skeleton (number for px, string for CSS units)", name: "width", required: !1, type: { name: "string | number" } }, fontSize: { defaultValue: { value: "16px" }, description: "Font size for text variant skeletons", name: "fontSize", required: !1, type: { name: "string | number" } }, component: { defaultValue: null, description: "Pre-defined component preset for common UI elements", name: "component", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"checkbox"' }, { value: '"typography"' }, { value: '"avatar"' }, { value: '"radio-button"' }, { value: '"rounded-avatar"' }, { value: '"icon-button"' }, { value: '"title-typography"' }] } } } };
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
32
41
|
export {
|
|
33
|
-
|
|
42
|
+
o as SSkeleton,
|
|
43
|
+
o as default
|
|
34
44
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SnackbarMessageProvider as
|
|
1
|
+
import { SnackbarMessageProvider as s, SSnackbarMessage as r, useSnackbarMessage as S } from "./s-snackbar-message.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
s as SnackbarMessageProvider,
|
|
4
|
+
r as default,
|
|
5
|
+
S as useSnackbarMessage
|
|
6
6
|
};
|
|
@@ -16,21 +16,12 @@ export interface SSnackbarMessageProps {
|
|
|
16
16
|
alertProps?: AlertProps;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* Combines Material-UI Snackbar with Alert for styled notifications.
|
|
21
|
-
*
|
|
22
|
-
* Key features:
|
|
23
|
-
* - Auto-hide after 10 seconds by default
|
|
24
|
-
* - Positioned at top-center for better visibility
|
|
25
|
-
* - Uses Alert component for consistent styling and severity levels
|
|
26
|
-
* - Configurable Snackbar and Alert props for customization
|
|
27
|
-
* - Default error severity (can be overridden via alertProps)
|
|
28
|
-
* - Full-width alert for better readability
|
|
29
|
-
*
|
|
30
|
-
* @param props - SSnackbarMessageProps with message and configuration
|
|
31
|
-
* @returns JSX.Element - Snackbar notification with Alert styling
|
|
19
|
+
* A notification snackbar component that displays temporary messages with Material-UI Alert styling.
|
|
32
20
|
*/
|
|
33
|
-
declare const SSnackbarMessage:
|
|
21
|
+
export declare const SSnackbarMessage: {
|
|
22
|
+
({ message, onClose, open, snackbarProps, alertProps, }: SSnackbarMessageProps): React.JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
34
25
|
export default SSnackbarMessage;
|
|
35
26
|
/**
|
|
36
27
|
* Options for opening a snackbar message
|
|
@@ -63,20 +54,11 @@ export interface SnackbarMessageContextProps {
|
|
|
63
54
|
}
|
|
64
55
|
/**
|
|
65
56
|
* Provider component that manages a global snackbar notification system.
|
|
66
|
-
* This enables any component in the app to display toast-like notifications
|
|
67
|
-
* without managing snackbar state locally.
|
|
68
|
-
*
|
|
69
|
-
* @param children - Child components that can use the snackbar context
|
|
70
|
-
* @returns JSX.Element - Provider with snackbar management and rendered snackbar
|
|
71
57
|
*/
|
|
72
58
|
export declare const SnackbarMessageProvider: ({ children }: {
|
|
73
59
|
children: React.ReactNode;
|
|
74
60
|
}) => React.JSX.Element;
|
|
75
61
|
/**
|
|
76
62
|
* Hook to access the snackbar message context.
|
|
77
|
-
* Must be used within a SnackbarMessageProvider.
|
|
78
|
-
*
|
|
79
|
-
* @returns SnackbarMessageContextProps - Context with snackbar management functions
|
|
80
|
-
* @throws Error if used outside of SnackbarMessageProvider
|
|
81
63
|
*/
|
|
82
64
|
export declare const useSnackbarMessage: () => SnackbarMessageContextProps;
|
|
@@ -1,59 +1,66 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { Snackbar as
|
|
4
|
-
import { useDialog as
|
|
5
|
-
const
|
|
6
|
-
message:
|
|
1
|
+
import { j as n } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Snackbar as k, Alert as f } from "@mui/material";
|
|
4
|
+
import { useDialog as S } from "../hooks/use-dialog.js";
|
|
5
|
+
const t = ({
|
|
6
|
+
message: a,
|
|
7
7
|
onClose: e = () => {
|
|
8
8
|
},
|
|
9
9
|
open: r = !1,
|
|
10
|
-
snackbarProps:
|
|
11
|
-
alertProps:
|
|
12
|
-
}) => /* @__PURE__ */
|
|
13
|
-
|
|
10
|
+
snackbarProps: o,
|
|
11
|
+
alertProps: l
|
|
12
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
13
|
+
k,
|
|
14
14
|
{
|
|
15
15
|
open: r,
|
|
16
16
|
autoHideDuration: 1e4,
|
|
17
17
|
onClose: e,
|
|
18
18
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
19
|
-
...
|
|
20
|
-
children: /* @__PURE__ */
|
|
19
|
+
...o,
|
|
20
|
+
children: /* @__PURE__ */ n.jsx(f, { onClose: e, severity: "info", sx: { width: "100%" }, ...l, children: a })
|
|
21
21
|
}
|
|
22
|
-
)
|
|
23
|
-
|
|
22
|
+
);
|
|
23
|
+
t.displayName = "SSnackbarMessage";
|
|
24
|
+
const c = s.createContext(null), M = ({ children: a }) => {
|
|
25
|
+
const e = S(), [r, o] = s.useState({
|
|
24
26
|
message: ""
|
|
25
|
-
}), [
|
|
26
|
-
handleOpen:
|
|
27
|
-
({ snackbarMessageOptions:
|
|
28
|
-
const { message:
|
|
29
|
-
|
|
27
|
+
}), [l, i] = s.useState({}), [p, d] = s.useState({}), u = {
|
|
28
|
+
handleOpen: s.useCallback(
|
|
29
|
+
({ snackbarMessageOptions: m, snackbarProps: b = {}, alertProps: g = {} }) => {
|
|
30
|
+
const { message: h } = m || { message: "" };
|
|
31
|
+
o({ message: h }), i(b), d(g), e.handleOpen();
|
|
30
32
|
},
|
|
31
33
|
[e]
|
|
32
34
|
),
|
|
33
35
|
handleClose: e.handleClose,
|
|
34
36
|
open: e.open
|
|
35
37
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
38
|
+
return /* @__PURE__ */ n.jsxs(c.Provider, { value: u, children: [
|
|
39
|
+
/* @__PURE__ */ n.jsx(
|
|
40
|
+
t,
|
|
39
41
|
{
|
|
40
42
|
open: e.open,
|
|
41
43
|
message: r == null ? void 0 : r.message,
|
|
42
44
|
onClose: e.handleClose,
|
|
43
|
-
snackbarProps:
|
|
44
|
-
alertProps:
|
|
45
|
+
snackbarProps: l,
|
|
46
|
+
alertProps: p
|
|
45
47
|
}
|
|
46
48
|
),
|
|
47
|
-
|
|
49
|
+
a
|
|
48
50
|
] });
|
|
49
|
-
},
|
|
50
|
-
const
|
|
51
|
-
if (!
|
|
51
|
+
}, C = () => {
|
|
52
|
+
const a = s.useContext(c);
|
|
53
|
+
if (!a)
|
|
52
54
|
throw new Error("useSnackbarMessage must be used within a SnackbarMessageProvider");
|
|
53
|
-
return
|
|
55
|
+
return a;
|
|
54
56
|
};
|
|
57
|
+
try {
|
|
58
|
+
t.displayName = "SSnackbarMessage", t.__docgenInfo = { description: "A notification snackbar component that displays temporary messages with Material-UI Alert styling.", displayName: "SSnackbarMessage", props: { message: { defaultValue: null, description: "Message content - can be string or React element", name: "message", required: !1, type: { name: "ReactNode" } }, onClose: { defaultValue: { value: "() => {}" }, description: "Callback fired when snackbar should close", name: "onClose", required: !1, type: { name: "(() => void)" } }, open: { defaultValue: { value: "false" }, description: "Whether the snackbar is open", name: "open", required: !1, type: { name: "boolean" } }, snackbarProps: { defaultValue: null, description: "Additional props passed to the Snackbar component", name: "snackbarProps", required: !1, type: { name: "SnackbarProps" } }, alertProps: { defaultValue: null, description: "Additional props passed to the Alert component", name: "alertProps", required: !1, type: { name: "AlertProps" } } } };
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
55
61
|
export {
|
|
62
|
+
t as SSnackbarMessage,
|
|
56
63
|
M as SnackbarMessageProvider,
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
t as default,
|
|
65
|
+
C as useSnackbarMessage
|
|
59
66
|
};
|
|
@@ -3,61 +3,27 @@ import { HTMLAttributes } from 'react';
|
|
|
3
3
|
* Configuration interface for spotlight effect appearance and behavior
|
|
4
4
|
*/
|
|
5
5
|
export interface SpotlightConfig {
|
|
6
|
-
/** Radius of the spotlight effect in pixels
|
|
6
|
+
/** Radius of the spotlight effect in pixels */
|
|
7
7
|
radius: number;
|
|
8
|
-
/** Brightness/opacity of the spotlight effect (
|
|
8
|
+
/** Brightness/opacity of the spotlight effect (0-1) */
|
|
9
9
|
brightness: number;
|
|
10
|
-
/** Color of the spotlight effect in hexadecimal format
|
|
10
|
+
/** Color of the spotlight effect in hexadecimal format */
|
|
11
11
|
color: string;
|
|
12
|
-
/** Smoothing factor for cursor movement
|
|
12
|
+
/** Smoothing factor for cursor movement */
|
|
13
13
|
smoothing: number;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Props interface for the SSpotlightCursor component
|
|
17
17
|
*/
|
|
18
18
|
export interface SSpotlightCursorProps extends HTMLAttributes<HTMLCanvasElement> {
|
|
19
|
-
/** Configuration object for spotlight appearance and behavior
|
|
19
|
+
/** Configuration object for spotlight appearance and behavior */
|
|
20
20
|
config?: SpotlightConfig;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* This component renders a full-screen HTML5 canvas with a radial gradient spotlight that
|
|
26
|
-
* smoothly tracks the user's mouse movement. The spotlight effect is highly customizable
|
|
27
|
-
* and optimized for performance using requestAnimationFrame.
|
|
28
|
-
*
|
|
29
|
-
* Key features:
|
|
30
|
-
* - Mouse-following spotlight with smooth animation
|
|
31
|
-
* - Customizable radius, brightness, color, and smoothing
|
|
32
|
-
* - Performance-optimized with proper cleanup
|
|
33
|
-
* - Responsive design that adapts to window resizing
|
|
34
|
-
* - Non-interfering overlay (pointer-events: none)
|
|
35
|
-
* - Memory-safe event listener management
|
|
36
|
-
*
|
|
37
|
-
* Technical implementation:
|
|
38
|
-
* - Uses HTML5 Canvas with 2D context for rendering
|
|
39
|
-
* - Implements radial gradient for spotlight effect
|
|
40
|
-
* - Leverages requestAnimationFrame for 60fps animations
|
|
41
|
-
* - Automatically handles canvas sizing and viewport changes
|
|
42
|
-
* - Converts hex colors to RGB for gradient creation
|
|
43
|
-
*
|
|
44
|
-
* @param props - SSpotlightCursorProps containing configuration and styling options
|
|
45
|
-
* @returns JSX.Element - Fixed-positioned canvas element rendering the spotlight effect
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* // Basic usage with default blue spotlight
|
|
49
|
-
* <SSpotlightCursor />
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* // Custom orange spotlight with larger radius
|
|
53
|
-
* <SSpotlightCursor
|
|
54
|
-
* config={{
|
|
55
|
-
* radius: 300,
|
|
56
|
-
* brightness: 0.25,
|
|
57
|
-
* color: '#ff6b35',
|
|
58
|
-
* smoothing: 0.1
|
|
59
|
-
* }}
|
|
60
|
-
* />
|
|
23
|
+
* Creates an interactive spotlight effect that follows the mouse cursor.
|
|
61
24
|
*/
|
|
62
|
-
declare const SSpotlightCursor:
|
|
25
|
+
export declare const SSpotlightCursor: {
|
|
26
|
+
({ config, className, ...props }: SSpotlightCursorProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
63
29
|
export default SSpotlightCursor;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
return
|
|
1
|
+
import { j as w } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { useRef as S, useEffect as b } from "react";
|
|
3
|
+
import { Box as C } from "@mui/material";
|
|
4
|
+
const x = (t) => {
|
|
5
|
+
const a = S(null);
|
|
6
|
+
return b(() => {
|
|
7
7
|
const e = a.current;
|
|
8
8
|
if (!e) return;
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
11
|
-
let
|
|
12
|
-
const
|
|
9
|
+
const n = e.getContext("2d");
|
|
10
|
+
if (!n) return;
|
|
11
|
+
let c, r = -1e3, i = -1e3;
|
|
12
|
+
const d = () => {
|
|
13
13
|
e.width = window.innerWidth, e.height = window.innerHeight;
|
|
14
|
-
},
|
|
15
|
-
r =
|
|
14
|
+
}, u = (o) => {
|
|
15
|
+
r = o.clientX, i = o.clientY;
|
|
16
|
+
}, h = () => {
|
|
17
|
+
r = -1e3, i = -1e3;
|
|
18
|
+
}, p = (o) => {
|
|
19
|
+
const s = parseInt(o.slice(1), 16), f = s >> 16 & 255, g = s >> 8 & 255, v = s & 255;
|
|
20
|
+
return `${f},${g},${v}`;
|
|
16
21
|
}, m = () => {
|
|
17
|
-
r
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return `${w},${v},${f}`;
|
|
21
|
-
}, u = () => {
|
|
22
|
-
if (o.clearRect(0, 0, e.width, e.height), r !== -1e3 && s !== -1e3) {
|
|
23
|
-
const n = o.createRadialGradient(r, s, 0, r, s, t.radius || 200), i = h(t.color);
|
|
24
|
-
n.addColorStop(0, `rgba(${i}, ${t.brightness})`), n.addColorStop(1, "rgba(0,0,0,0)"), o.fillStyle = n, o.fillRect(0, 0, e.width, e.height);
|
|
22
|
+
if (n.clearRect(0, 0, e.width, e.height), r !== -1e3 && i !== -1e3) {
|
|
23
|
+
const o = n.createRadialGradient(r, i, 0, r, i, t.radius || 200), s = p(t.color);
|
|
24
|
+
o.addColorStop(0, `rgba(${s}, ${t.brightness})`), o.addColorStop(1, "rgba(0,0,0,0)"), n.fillStyle = o, n.fillRect(0, 0, e.width, e.height);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
c = requestAnimationFrame(m);
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
window.removeEventListener("resize",
|
|
28
|
+
return d(), window.addEventListener("resize", d), window.addEventListener("mousemove", u), window.addEventListener("mouseleave", h), c = requestAnimationFrame(m), () => {
|
|
29
|
+
window.removeEventListener("resize", d), window.removeEventListener("mousemove", u), window.removeEventListener("mouseleave", h), cancelAnimationFrame(c);
|
|
30
30
|
};
|
|
31
31
|
}, [t.radius, t.brightness, t.color]), a;
|
|
32
|
-
},
|
|
32
|
+
}, l = ({
|
|
33
33
|
config: t = { radius: 200, brightness: 0.15, color: "#0000ff", smoothing: 0.1 },
|
|
34
34
|
className: a,
|
|
35
35
|
...e
|
|
36
36
|
}) => {
|
|
37
|
-
const
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
37
|
+
const n = x(t);
|
|
38
|
+
return /* @__PURE__ */ w.jsx(
|
|
39
|
+
C,
|
|
40
40
|
{
|
|
41
41
|
component: "canvas",
|
|
42
|
-
ref:
|
|
42
|
+
ref: n,
|
|
43
43
|
className: a,
|
|
44
44
|
sx: {
|
|
45
45
|
position: "fixed",
|
|
@@ -54,6 +54,12 @@ const b = (t) => {
|
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
};
|
|
57
|
+
l.displayName = "SSpotlightCursor";
|
|
58
|
+
try {
|
|
59
|
+
l.displayName = "SSpotlightCursor", l.__docgenInfo = { description: "Creates an interactive spotlight effect that follows the mouse cursor.", displayName: "SSpotlightCursor", props: { config: { defaultValue: { value: "{ radius: 200, brightness: 0.15, color: '#0000ff', smoothing: 0.1 }" }, description: "Configuration object for spotlight appearance and behavior", name: "config", required: !1, type: { name: "SpotlightConfig" } } } };
|
|
60
|
+
} catch {
|
|
61
|
+
}
|
|
57
62
|
export {
|
|
58
|
-
|
|
63
|
+
l as SSpotlightCursor,
|
|
64
|
+
l as default
|
|
59
65
|
};
|
package/dist/s-stripe/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { StripeTextField } from './s-stripe';
|
|
2
|
+
export { SStripeNumber } from './s-stripe-number';
|
|
3
|
+
export { SStripeExpiry } from './s-stripe-expiry';
|
|
4
|
+
export { SStripeCVC } from './s-stripe-cvc';
|
|
2
5
|
export type { StripeTextFieldProps, StripeElement } from './s-stripe';
|
package/dist/s-stripe/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StripeTextField as p } from "./s-stripe.js";
|
|
2
|
+
import { SStripeNumber as o } from "./s-stripe-number.js";
|
|
3
|
+
import { SStripeExpiry as i } from "./s-stripe-expiry.js";
|
|
4
|
+
import { SStripeCVC as m } from "./s-stripe-cvc.js";
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
m as SStripeCVC,
|
|
4
7
|
i as SStripeExpiry,
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
o as SStripeNumber,
|
|
9
|
+
p as StripeTextField
|
|
7
10
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardCvcElement } from '@stripe/react-stripe-js';
|
|
2
|
+
import { StripeTextFieldProps } from './s-stripe';
|
|
3
|
+
/** Card security code (CVC/CVV) input field with Stripe integration. */
|
|
4
|
+
export declare function SStripeCVC(props: StripeTextFieldProps<typeof CardCvcElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace SStripeCVC {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export default SStripeCVC;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { CardCvcElement as n } from "@stripe/react-stripe-js";
|
|
3
|
+
import { StripeTextField as a } from "./s-stripe.js";
|
|
4
|
+
function e(t) {
|
|
5
|
+
return /* @__PURE__ */ r.jsx(a, { label: "CVC", stripeElement: n, ...t });
|
|
6
|
+
}
|
|
7
|
+
e.displayName = "SStripeCVC";
|
|
8
|
+
try {
|
|
9
|
+
e.displayName = "SStripeCVC", e.__docgenInfo = { description: "Card security code (CVC/CVV) input field with Stripe integration.", displayName: "SStripeCVC", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "CardCvcElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeCardCvcElementChangeEvent) => any)" } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "CardCvcElementComponent" } } } };
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
e as SStripeCVC,
|
|
14
|
+
e as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardExpiryElement } from '@stripe/react-stripe-js';
|
|
2
|
+
import { StripeTextFieldProps } from './s-stripe';
|
|
3
|
+
/** Card expiration date input field with Stripe integration. */
|
|
4
|
+
export declare function SStripeExpiry(props: StripeTextFieldProps<typeof CardExpiryElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace SStripeExpiry {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export default SStripeExpiry;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as t } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { CardExpiryElement as i } from "@stripe/react-stripe-js";
|
|
3
|
+
import { StripeTextField as n } from "./s-stripe.js";
|
|
4
|
+
function e(r) {
|
|
5
|
+
return /* @__PURE__ */ t.jsx(n, { label: "Expiration", stripeElement: i, ...r });
|
|
6
|
+
}
|
|
7
|
+
e.displayName = "SStripeExpiry";
|
|
8
|
+
try {
|
|
9
|
+
e.displayName = "SStripeExpiry", e.__docgenInfo = { description: "Card expiration date input field with Stripe integration.", displayName: "SStripeExpiry", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "CardExpiryElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeCardExpiryElementChangeEvent) => any)" } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "CardExpiryElementComponent" } } } };
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
e as SStripeExpiry,
|
|
14
|
+
e as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardNumberElement } from '@stripe/react-stripe-js';
|
|
2
|
+
import { StripeTextFieldProps } from './s-stripe';
|
|
3
|
+
/** Card number input field with Stripe integration. */
|
|
4
|
+
export declare function SStripeNumber(props: StripeTextFieldProps<typeof CardNumberElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace SStripeNumber {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export default SStripeNumber;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { j as t } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { CardNumberElement as n } from "@stripe/react-stripe-js";
|
|
3
|
+
import { StripeTextField as a } from "./s-stripe.js";
|
|
4
|
+
function e(r) {
|
|
5
|
+
return /* @__PURE__ */ t.jsx(a, { label: "Card Number", stripeElement: n, ...r });
|
|
6
|
+
}
|
|
7
|
+
e.displayName = "SStripeNumber";
|
|
8
|
+
try {
|
|
9
|
+
e.displayName = "SStripeNumber", e.__docgenInfo = { description: "Card number input field with Stripe integration.", displayName: "SStripeNumber", props: { inputProps: { defaultValue: null, description: "Props passed directly to the Stripe Element", name: "inputProps", required: !1, type: { name: "CardNumberElementProps" } }, labelErrorMessage: { defaultValue: null, description: "Custom error message to display when validation fails", name: "labelErrorMessage", required: !1, type: { name: "string" } }, onChange: { defaultValue: null, description: "Change handler for Stripe Element events", name: "onChange", required: !1, type: { name: "((event: StripeCardNumberElementChangeEvent) => any)" } }, stripeElement: { defaultValue: null, description: "The Stripe Element component to render", name: "stripeElement", required: !1, type: { name: "CardNumberElementComponent" } } } };
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
e as SStripeNumber,
|
|
14
|
+
e as default
|
|
15
|
+
};
|
|
@@ -19,88 +19,9 @@ export interface StripeTextFieldProps<T extends StripeElement> extends Omit<STex
|
|
|
19
19
|
/** The Stripe Element component to render */
|
|
20
20
|
stripeElement?: T;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*
|
|
29
|
-
* Features:
|
|
30
|
-
* - Consistent Material-UI styling for Stripe elements
|
|
31
|
-
* - Proper label shrinking behavior
|
|
32
|
-
* - Error state handling with custom messages
|
|
33
|
-
* - Theme-aware styling that adapts to dark/light modes
|
|
34
|
-
* - Focus management integration
|
|
35
|
-
*
|
|
36
|
-
* @param props - Configuration props including Stripe element and styling options
|
|
37
|
-
* @returns JSX element containing integrated Stripe element with Material-UI styling
|
|
38
|
-
*/
|
|
39
|
-
export declare const StripeTextField: <T extends StripeElement>(props: StripeTextFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
/**
|
|
41
|
-
* Card number input field with Stripe integration
|
|
42
|
-
*
|
|
43
|
-
* Pre-configured Stripe text field specifically for card number entry.
|
|
44
|
-
* Handles card number formatting, validation, and brand detection automatically.
|
|
45
|
-
*
|
|
46
|
-
* @param props - StripeTextFieldProps configured for CardNumberElement
|
|
47
|
-
* @returns JSX element containing card number input field
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```tsx
|
|
51
|
-
* <SStripeNumber
|
|
52
|
-
* onChange={(event) => {
|
|
53
|
-
* if (event.complete) {
|
|
54
|
-
* console.log('Card number is valid');
|
|
55
|
-
* }
|
|
56
|
-
* }}
|
|
57
|
-
* inputProps={{
|
|
58
|
-
* placeholder: '1234 5678 9012 3456'
|
|
59
|
-
* }}
|
|
60
|
-
* />
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
export declare function SStripeNumber(props: StripeTextFieldProps<typeof CardNumberElement>): import("react/jsx-runtime").JSX.Element;
|
|
64
|
-
/**
|
|
65
|
-
* Card expiration date input field with Stripe integration
|
|
66
|
-
*
|
|
67
|
-
* Pre-configured Stripe text field for card expiration date entry.
|
|
68
|
-
* Automatically formats input as MM/YY and validates expiration dates.
|
|
69
|
-
*
|
|
70
|
-
* @param props - StripeTextFieldProps configured for CardExpiryElement
|
|
71
|
-
* @returns JSX element containing expiration date input field
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```tsx
|
|
75
|
-
* <SStripeExpiry
|
|
76
|
-
* onChange={(event) => {
|
|
77
|
-
* if (event.error) {
|
|
78
|
-
* setError(event.error.message);
|
|
79
|
-
* }
|
|
80
|
-
* }}
|
|
81
|
-
* />
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
export declare function SStripeExpiry(props: StripeTextFieldProps<typeof CardExpiryElement>): import("react/jsx-runtime").JSX.Element;
|
|
85
|
-
/**
|
|
86
|
-
* Card security code (CVC/CVV) input field with Stripe integration
|
|
87
|
-
*
|
|
88
|
-
* Pre-configured Stripe text field for card security code entry.
|
|
89
|
-
* Automatically adjusts expected length based on detected card brand
|
|
90
|
-
* (3 digits for most cards, 4 for American Express).
|
|
91
|
-
*
|
|
92
|
-
* @param props - StripeTextFieldProps configured for CardCvcElement
|
|
93
|
-
* @returns JSX element containing CVC input field
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```tsx
|
|
97
|
-
* <SStripeCVC
|
|
98
|
-
* onChange={(event) => {
|
|
99
|
-
* if (event.complete) {
|
|
100
|
-
* console.log('CVC is valid');
|
|
101
|
-
* }
|
|
102
|
-
* }}
|
|
103
|
-
* />
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
export declare function SStripeCVC(props: StripeTextFieldProps<typeof CardCvcElement>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/** Generic Stripe text field component that integrates Stripe Elements with Material-UI styling. */
|
|
23
|
+
export declare const StripeTextField: {
|
|
24
|
+
<T extends StripeElement>(props: StripeTextFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export default StripeTextField;
|