@sinco/react 1.0.14-rc.58 → 1.0.14-rc.59
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +7 -2
- package/package.json +1 -1
- package/src/lib/Components/EmptyState.d.ts +4 -3
package/index.js
CHANGED
@@ -15317,8 +15317,13 @@ const EmptyStateComponent = ({
|
|
15317
15317
|
title,
|
15318
15318
|
content,
|
15319
15319
|
actions,
|
15320
|
+
containerHeight: _containerHeight = '100%',
|
15321
|
+
imageWidth: _imageWidth = '210px',
|
15322
|
+
imageHeight: _imageHeight = '185px',
|
15320
15323
|
icon: _icon = /*#__PURE__*/React__default.createElement(DefaultIcon, {
|
15321
|
-
state: _state2
|
15324
|
+
state: _state2,
|
15325
|
+
imageWidth: _imageWidth,
|
15326
|
+
imageHeight: _imageHeight
|
15322
15327
|
})
|
15323
15328
|
}) => {
|
15324
15329
|
return /*#__PURE__*/React__default.createElement(Stack$1, {
|
@@ -15326,7 +15331,7 @@ const EmptyStateComponent = ({
|
|
15326
15331
|
justifyContent: "center",
|
15327
15332
|
padding: 1,
|
15328
15333
|
spacing: 2,
|
15329
|
-
height:
|
15334
|
+
height: _containerHeight
|
15330
15335
|
}, /*#__PURE__*/React__default.createElement(Box$2, null, _icon), /*#__PURE__*/React__default.createElement(Stack$1, {
|
15331
15336
|
spacing: 2
|
15332
15337
|
}, title && /*#__PURE__*/React__default.createElement(Typography$1, {
|
package/package.json
CHANGED
@@ -2,12 +2,13 @@ import { ReactNode } from 'react';
|
|
2
2
|
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
3
3
|
export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
|
4
4
|
export interface EmptyStateProperties {
|
5
|
+
icon?: ReactNode;
|
5
6
|
state?: EmptyStateStates;
|
6
7
|
title?: string;
|
7
8
|
content?: string;
|
9
|
+
actions?: ReactNode;
|
8
10
|
imageWidth?: string;
|
9
11
|
imageHeight?: string;
|
10
|
-
|
11
|
-
icon?: ReactNode;
|
12
|
+
containerHeight?: string;
|
12
13
|
}
|
13
|
-
export declare const EmptyStateComponent: ({ state, title, content, actions, icon, }: EmptyStateProperties) => JSX.Element;
|
14
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, imageWidth, imageHeight, icon, }: EmptyStateProperties) => JSX.Element;
|