@sinco/react 1.0.14-rc.60 → 1.0.14-rc.62
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -10
- package/package.json +1 -1
- package/src/lib/Components/EmptyState.d.ts +3 -4
package/index.js
CHANGED
@@ -15300,14 +15300,10 @@ const EmptyStateImageUrls = {
|
|
15300
15300
|
};
|
15301
15301
|
const DefaultIcon = ({
|
15302
15302
|
state: _state = 'create',
|
15303
|
-
|
15304
|
-
imageHeight
|
15303
|
+
iconStyle
|
15305
15304
|
}) => {
|
15306
15305
|
return /*#__PURE__*/React__default.createElement("svg", {
|
15307
|
-
style:
|
15308
|
-
width: imageWidth,
|
15309
|
-
height: imageHeight
|
15310
|
-
}
|
15306
|
+
style: iconStyle
|
15311
15307
|
}, /*#__PURE__*/React__default.createElement("use", {
|
15312
15308
|
xlinkHref: `${emptyStateIcons}#${EmptyStateImageUrls[_state]}`
|
15313
15309
|
}));
|
@@ -15318,12 +15314,10 @@ const EmptyStateComponent = ({
|
|
15318
15314
|
content,
|
15319
15315
|
actions,
|
15320
15316
|
containerHeight: _containerHeight = '100%',
|
15321
|
-
|
15322
|
-
imageHeight: _imageHeight = '185px',
|
15317
|
+
iconStyle,
|
15323
15318
|
icon: _icon = /*#__PURE__*/React__default.createElement(DefaultIcon, {
|
15324
15319
|
state: _state2,
|
15325
|
-
|
15326
|
-
imageHeight: _imageHeight
|
15320
|
+
iconStyle: iconStyle
|
15327
15321
|
})
|
15328
15322
|
}) => {
|
15329
15323
|
return /*#__PURE__*/React__default.createElement(Stack$1, {
|
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
1
|
+
import React, { 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 {
|
@@ -7,8 +7,7 @@ export interface EmptyStateProperties {
|
|
7
7
|
title?: string;
|
8
8
|
content?: string;
|
9
9
|
actions?: ReactNode;
|
10
|
-
|
11
|
-
imageHeight?: string;
|
10
|
+
iconStyle?: React.CSSProperties;
|
12
11
|
containerHeight?: string;
|
13
12
|
}
|
14
|
-
export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight,
|
13
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
|