@solostylist/ui-kit 1.0.149 → 1.0.151
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/main.d.ts +4 -0
- package/dist/main.js +132 -128
- package/dist/s-error-layout/index.d.ts +2 -0
- package/dist/s-error-layout/index.js +4 -0
- package/dist/s-error-layout/package.json +5 -0
- package/dist/s-error-layout/s-error-layout.d.ts +56 -0
- package/dist/s-error-layout/s-error-layout.js +1346 -0
- package/dist/s-two-pane-layout/index.d.ts +2 -0
- package/dist/s-two-pane-layout/index.js +4 -0
- package/dist/s-two-pane-layout/package.json +5 -0
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +48 -0
- package/dist/s-two-pane-layout/s-two-pane-layout.js +71 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -37,8 +37,12 @@ export { default as SEmpty } from './s-empty/index';
|
|
|
37
37
|
export type { SEmptyProps } from './s-empty/index';
|
|
38
38
|
export { default as SFlexBox } from './s-flex-box/index';
|
|
39
39
|
export type { SFlexBoxProps } from './s-flex-box/index';
|
|
40
|
+
export { default as STwoPaneLayout } from './s-two-pane-layout/index';
|
|
41
|
+
export type { STwoPaneLayoutProps } from './s-two-pane-layout/index';
|
|
40
42
|
export { default as SDialog } from './s-dialog/index';
|
|
41
43
|
export type { SDialogProps } from './s-dialog/index';
|
|
44
|
+
export { default as SErrorLayout } from './s-error-layout/index';
|
|
45
|
+
export type { SErrorLayoutProps } from './s-error-layout/index';
|
|
42
46
|
export { default as SFileDropzone } from './s-file-dropzone/index';
|
|
43
47
|
export type { CustomFile, SFileDropzoneProps } from './s-file-dropzone/index';
|
|
44
48
|
export { default as SFileIcon } from './s-file-icon/index';
|
package/dist/main.js
CHANGED
|
@@ -1,165 +1,169 @@
|
|
|
1
1
|
import { default as t } from "./s-accordion/s-accordion.js";
|
|
2
2
|
import { default as l } from "./s-action-overlay/s-action-overlay.js";
|
|
3
3
|
import { default as s } from "./s-autocomplete/s-autocomplete.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as u } from "./s-avatar/s-avatar.js";
|
|
5
5
|
import { default as d } from "./s-button/s-button.js";
|
|
6
6
|
import { default as i } from "./s-button-link/s-button-link.js";
|
|
7
7
|
import { default as g } from "./s-carousel/s-carousel.js";
|
|
8
8
|
import { default as T } from "./s-chat-input/s-chat-input.js";
|
|
9
9
|
import { default as v } from "./s-chat-message/s-chat-message.js";
|
|
10
10
|
import { default as b } from "./s-comment-message/s-comment-message.js";
|
|
11
|
-
import { default as
|
|
11
|
+
import { default as D } from "./s-text-editor/s-text-editor.js";
|
|
12
12
|
import "./s-text-editor/s-text-editor-toolbar.js";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as M } from "./s-checkbox/s-checkbox.js";
|
|
14
14
|
import { default as I } from "./s-chip/s-chip.js";
|
|
15
15
|
import { default as F } from "./s-chips/s-chips.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { DialogConfirmProvider as
|
|
16
|
+
import { default as A } from "./s-data-table/s-data-table.js";
|
|
17
|
+
import { DialogConfirmProvider as E, default as z, useDialogConfirm as R } from "./s-dialog-confirm/s-dialog-confirm.js";
|
|
18
18
|
import { DialogMessageProvider as N, default as O, useDialogMessage as j } from "./s-dialog-message/s-dialog-message.js";
|
|
19
19
|
import { default as V } from "./s-error/s-error.js";
|
|
20
20
|
import { default as H } from "./s-empty/s-empty.js";
|
|
21
21
|
import { default as Q } from "./s-flex-box/s-flex-box.js";
|
|
22
|
-
import { default as W } from "./s-
|
|
23
|
-
import { default as Y } from "./s-
|
|
24
|
-
import { default as _ } from "./s-
|
|
25
|
-
import { default as ee } from "./s-
|
|
26
|
-
import { default as re } from "./s-icon
|
|
27
|
-
import { default as te } from "./s-
|
|
28
|
-
import { default as le } from "./s-
|
|
29
|
-
import { default as se } from "./s-
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as de } from "./s-
|
|
32
|
-
import { default as ie } from "./s-
|
|
33
|
-
import { default as ge } from "./s-
|
|
34
|
-
import { default as Te } from "./s-
|
|
35
|
-
import { default as ve } from "./s-
|
|
36
|
-
import { default as be } from "./s-
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { default as qe } from "./s-
|
|
45
|
-
import { default as Je } from "./s-
|
|
46
|
-
import { default as Ue } from "./s-
|
|
47
|
-
import { default as Xe } from "./s-
|
|
48
|
-
import { default as Ze } from "./s-
|
|
49
|
-
import { default as $e } from "./s-
|
|
50
|
-
import { default as oo } from "./s-
|
|
51
|
-
import { default as ao } from "./s-
|
|
52
|
-
import { default as fo } from "./s-
|
|
53
|
-
import {
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as xo } from "./s-
|
|
56
|
-
import { default as no } from "./s-image-
|
|
57
|
-
import { default as co } from "./s-
|
|
58
|
-
import { default as Co } from "./s-
|
|
59
|
-
import { default as Po } from "./s-
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as ko } from "./s-
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
22
|
+
import { default as W } from "./s-two-pane-layout/s-two-pane-layout.js";
|
|
23
|
+
import { default as Y } from "./s-dialog/s-dialog.js";
|
|
24
|
+
import { default as _ } from "./s-error-layout/s-error-layout.js";
|
|
25
|
+
import { default as ee } from "./s-file-dropzone/s-file-dropzone.js";
|
|
26
|
+
import { default as re } from "./s-file-icon/s-file-icon.js";
|
|
27
|
+
import { default as te } from "./s-i18n-provider/s-i18n-provider.js";
|
|
28
|
+
import { default as le } from "./s-icon-button/s-icon-button.js";
|
|
29
|
+
import { default as se } from "./s-label/s-label.js";
|
|
30
|
+
import { default as ue } from "./s-multi-select/s-multi-select.js";
|
|
31
|
+
import { default as de } from "./s-no-ssr/s-no-ssr.js";
|
|
32
|
+
import { default as ie } from "./s-overlay-scrollbar/s-overlay-scrollbar.js";
|
|
33
|
+
import { default as ge } from "./s-text-field/s-text-field.js";
|
|
34
|
+
import { default as Te } from "./s-pagination/s-pagination.js";
|
|
35
|
+
import { default as ve } from "./s-select/s-select.js";
|
|
36
|
+
import { default as be } from "./s-skeleton/s-skeleton.js";
|
|
37
|
+
import { default as De } from "./s-tip/s-tip.js";
|
|
38
|
+
import { default as Me } from "./s-text-truncation/s-text-truncation.js";
|
|
39
|
+
import { default as Ie, SnackbarMessageProvider as ke, useSnackbarMessage as Fe } from "./s-snackbar-message/s-snackbar-message.js";
|
|
40
|
+
import { default as Ae } from "./s-form/s-form.js";
|
|
41
|
+
import { SSmartTextField as Ee } from "./s-smart-text-field/s-smart-text-field.js";
|
|
42
|
+
import { SCopilotKitProvider as Re } from "./s-copilot-kit-provider/s-copilot-kit-provider.js";
|
|
43
|
+
import { SStripeCVC as Ne, SStripeExpiry as Oe, SStripeNumber as je, StripeTextField as Ke } from "./s-stripe/s-stripe.js";
|
|
44
|
+
import { default as qe } from "./s-theme-provider/s-theme-provider.js";
|
|
45
|
+
import { default as Je } from "./s-theme-switch/s-theme-switch.js";
|
|
46
|
+
import { default as Ue } from "./s-datetime-picker/s-datetime-picker.js";
|
|
47
|
+
import { default as Xe } from "./s-date-picker/s-date-picker.js";
|
|
48
|
+
import { default as Ze } from "./s-localization-provider/s-localization-provider.js";
|
|
49
|
+
import { default as $e } from "./s-gradient-icon/s-gradient-icon.js";
|
|
50
|
+
import { default as oo } from "./s-glow-button/s-glow-button.js";
|
|
51
|
+
import { default as ao } from "./s-moving-border/s-moving-border.js";
|
|
52
|
+
import { default as fo } from "./s-scroll-reveal/s-scroll-reveal.js";
|
|
53
|
+
import { default as mo } from "./s-spotlight-cursor/s-spotlight-cursor.js";
|
|
54
|
+
import { default as po } from "./s-copyable-text/s-copyable-text.js";
|
|
55
|
+
import { MediaItem as So, default as xo } from "./s-gallery/s-gallery.js";
|
|
56
|
+
import { default as no } from "./s-image-modal/s-image-modal.js";
|
|
57
|
+
import { default as co } from "./s-lazy-image/s-lazy-image.js";
|
|
58
|
+
import { default as Co } from "./s-image-comparison/s-image-comparison.js";
|
|
59
|
+
import { default as Po } from "./s-item-not-found/s-item-not-found.js";
|
|
60
|
+
import { default as yo } from "./s-category-card/s-category-card.js";
|
|
61
|
+
import { default as Lo } from "./s-radial-pulse-animate/s-radial-pulse-animate.js";
|
|
62
|
+
import { default as ho } from "./s-rating/s-rating.js";
|
|
63
|
+
import { default as ko } from "./s-review/s-review.js";
|
|
64
|
+
import { default as wo } from "./s-tabs/s-tabs.js";
|
|
65
|
+
import { default as Bo } from "./s-tabs/s-tab.js";
|
|
66
|
+
import { default as zo } from "./s-tabs/s-tab-panel.js";
|
|
67
|
+
import { default as Go } from "./s-text-shimmer/s-text-shimmer.js";
|
|
68
|
+
import { default as Oo } from "./s-typewriter-text/s-typewriter-text.js";
|
|
69
|
+
import { SLanguagePopover as Ko, default as Vo, defaultLanguageOptions as qo } from "./s-language-switcher/s-language-switcher.js";
|
|
70
|
+
import { useDialog as Jo } from "./hooks/use-dialog.js";
|
|
71
|
+
import { usePopover as Uo } from "./hooks/use-popover.js";
|
|
70
72
|
import "react";
|
|
71
|
-
import { useScrollAnimation as
|
|
72
|
-
import { formatDatePosted as
|
|
73
|
-
import { bytesToSize as
|
|
74
|
-
import { LogLevel as
|
|
75
|
-
import { default as
|
|
73
|
+
import { useScrollAnimation as Xo } from "./hooks/use-scroll-animation.js";
|
|
74
|
+
import { formatDatePosted as Zo } from "./utils/dayjs.js";
|
|
75
|
+
import { bytesToSize as $o } from "./utils/bytes-to-size.js";
|
|
76
|
+
import { LogLevel as or, Logger as rr, createLogger as ar, logger as tr } from "./utils/logger.js";
|
|
77
|
+
import { default as lr } from "dayjs";
|
|
76
78
|
export {
|
|
77
|
-
|
|
79
|
+
E as DialogConfirmProvider,
|
|
78
80
|
N as DialogMessageProvider,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
or as LogLevel,
|
|
82
|
+
rr as Logger,
|
|
83
|
+
So as MediaItem,
|
|
82
84
|
t as SAccordion,
|
|
83
85
|
l as SActionOverlay,
|
|
84
86
|
s as SAutocomplete,
|
|
85
|
-
|
|
87
|
+
u as SAvatar,
|
|
86
88
|
d as SButton,
|
|
87
89
|
i as SButtonLink,
|
|
88
90
|
g as SCarousel,
|
|
89
|
-
|
|
91
|
+
yo as SCategoryCard,
|
|
90
92
|
T as SChatInput,
|
|
91
93
|
v as SChatMessage,
|
|
92
|
-
|
|
94
|
+
M as SCheckbox,
|
|
93
95
|
I as SChip,
|
|
94
96
|
F as SChips,
|
|
95
97
|
b as SCommentMessage,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
Re as SCopilotKitProvider,
|
|
99
|
+
po as SCopyableText,
|
|
100
|
+
A as SDataTable,
|
|
101
|
+
Xe as SDatePicker,
|
|
102
|
+
Ue as SDateTimePicker,
|
|
103
|
+
Y as SDialog,
|
|
104
|
+
z as SDialogConfirm,
|
|
103
105
|
O as SDialogMessage,
|
|
104
106
|
H as SEmpty,
|
|
105
107
|
V as SError,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
_ as SErrorLayout,
|
|
109
|
+
ee as SFileDropzone,
|
|
110
|
+
re as SFileIcon,
|
|
108
111
|
Q as SFlexBox,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
$o as
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
112
|
+
Ae as SForm,
|
|
113
|
+
xo as SGallery,
|
|
114
|
+
oo as SGlowButton,
|
|
115
|
+
$e as SGradientIcon,
|
|
116
|
+
te as SI18nProvider,
|
|
117
|
+
le as SIconButton,
|
|
118
|
+
Co as SImageComparison,
|
|
119
|
+
no as SImageModal,
|
|
120
|
+
Po as SItemNotFound,
|
|
121
|
+
se as SLabel,
|
|
122
|
+
Ko as SLanguagePopover,
|
|
123
|
+
Vo as SLanguageSwitcher,
|
|
124
|
+
co as SLazyImage,
|
|
125
|
+
Ze as SLocalizationProvider,
|
|
126
|
+
ao as SMovingBorder,
|
|
127
|
+
ue as SMultiSelect,
|
|
128
|
+
de as SNoSsr,
|
|
129
|
+
ie as SOverlayScrollbar,
|
|
130
|
+
Te as SPagination,
|
|
131
|
+
Lo as SRadialPulseAnimate,
|
|
132
|
+
ho as SRating,
|
|
133
|
+
ko as SReview,
|
|
134
|
+
fo as SScrollReveal,
|
|
135
|
+
ve as SSelect,
|
|
136
|
+
be as SSkeleton,
|
|
137
|
+
Ee as SSmartTextField,
|
|
138
|
+
Ie as SSnackbarMessage,
|
|
139
|
+
mo as SSpotlightCursor,
|
|
140
|
+
Ne as SStripeCVC,
|
|
141
|
+
Oe as SStripeExpiry,
|
|
142
|
+
je as SStripeNumber,
|
|
143
|
+
Bo as STab,
|
|
144
|
+
zo as STabPanel,
|
|
145
|
+
wo as STabs,
|
|
146
|
+
D as STextEditor,
|
|
147
|
+
ge as STextField,
|
|
148
|
+
Go as STextShimmer,
|
|
149
|
+
Me as STextTruncation,
|
|
150
|
+
qe as SThemeProvider,
|
|
151
|
+
Je as SThemeSwitch,
|
|
152
|
+
De as STip,
|
|
153
|
+
W as STwoPaneLayout,
|
|
154
|
+
Oo as STypewriterText,
|
|
155
|
+
ke as SnackbarMessageProvider,
|
|
156
|
+
Ke as StripeTextField,
|
|
157
|
+
$o as bytesToSize,
|
|
158
|
+
ar as createLogger,
|
|
159
|
+
lr as dayjs,
|
|
160
|
+
qo as defaultLanguageOptions,
|
|
161
|
+
Zo as formatDatePosted,
|
|
162
|
+
tr as logger,
|
|
163
|
+
Jo as useDialog,
|
|
160
164
|
R as useDialogConfirm,
|
|
161
165
|
j as useDialogMessage,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
Uo as usePopover,
|
|
167
|
+
Xo as useScrollAnimation,
|
|
168
|
+
Fe as useSnackbarMessage
|
|
165
169
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps, SxProps, Theme, TypographyProps } from '@mui/material';
|
|
3
|
+
export interface SErrorLayoutProps {
|
|
4
|
+
/** Source URL for the error image */
|
|
5
|
+
imageSrc: string;
|
|
6
|
+
/** Alt text for the error image */
|
|
7
|
+
imageAlt: string;
|
|
8
|
+
/** Main error title text */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Error description text */
|
|
11
|
+
description: string | ReactNode;
|
|
12
|
+
/** Text for the action button. If not provided, button will not be shown */
|
|
13
|
+
buttonText?: string;
|
|
14
|
+
/** Link destination for the button. Default: '#' */
|
|
15
|
+
buttonHref?: string;
|
|
16
|
+
/** Image width. Default: '200px' */
|
|
17
|
+
imageWidth?: string | number;
|
|
18
|
+
/** Image height. Default: 'auto' */
|
|
19
|
+
imageHeight?: string | number;
|
|
20
|
+
/** Container max width. Default: 'lg' */
|
|
21
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
|
|
22
|
+
/** Main container height. Default: '100vh' */
|
|
23
|
+
height?: string | number;
|
|
24
|
+
/** Vertical padding. Default: 8 (64px) */
|
|
25
|
+
py?: number | string;
|
|
26
|
+
/** Spacing between elements. Default: 6 */
|
|
27
|
+
spacing?: number;
|
|
28
|
+
/** Title typography variant. Default: 'h4' */
|
|
29
|
+
titleVariant?: TypographyProps['variant'];
|
|
30
|
+
/** Description typography variant. Default: 'body1' */
|
|
31
|
+
descriptionVariant?: TypographyProps['variant'];
|
|
32
|
+
/** Button variant. Default: 'contained' */
|
|
33
|
+
buttonVariant?: ButtonProps['variant'];
|
|
34
|
+
/** Button color. Default: 'primary' */
|
|
35
|
+
buttonColor?: ButtonProps['color'];
|
|
36
|
+
/** Custom styles for the main container */
|
|
37
|
+
containerSx?: SxProps<Theme>;
|
|
38
|
+
/** Custom styles for the image container */
|
|
39
|
+
imageContainerSx?: SxProps<Theme>;
|
|
40
|
+
/** Custom styles for the content stack */
|
|
41
|
+
contentSx?: SxProps<Theme>;
|
|
42
|
+
/** Custom styles for the title */
|
|
43
|
+
titleSx?: SxProps<Theme>;
|
|
44
|
+
/** Custom styles for the description */
|
|
45
|
+
descriptionSx?: SxProps<Theme>;
|
|
46
|
+
/** Custom styles for the button container */
|
|
47
|
+
buttonContainerSx?: SxProps<Theme>;
|
|
48
|
+
/** Additional button props */
|
|
49
|
+
buttonProps?: Partial<ButtonProps>;
|
|
50
|
+
/** Hide image. Default: false */
|
|
51
|
+
hideImage?: boolean;
|
|
52
|
+
/** Custom content to render instead of the button */
|
|
53
|
+
customActions?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
declare function SErrorLayout({ imageSrc, imageAlt, title, description, buttonText, buttonHref, imageWidth, imageHeight, maxWidth, height, py, spacing, titleVariant, descriptionVariant, buttonVariant, buttonColor, containerSx, imageContainerSx, contentSx, titleSx, descriptionSx, buttonContainerSx, buttonProps, hideImage, customActions, }: SErrorLayoutProps): React.JSX.Element;
|
|
56
|
+
export default SErrorLayout;
|