@sinco/react 1.0.14-rc.54 → 1.0.14-rc.55
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/index.js +11 -17
- package/package.json +1 -1
- package/src/lib/Components/EmptyState.d.ts +2 -4
package/index.js
CHANGED
@@ -15298,26 +15298,16 @@ const EmptyStateImageUrls = {
|
|
15298
15298
|
noResult: 'noResult',
|
15299
15299
|
create: 'create'
|
15300
15300
|
};
|
15301
|
-
const DefaultIcon = ({
|
15302
|
-
state: _state = 'create'
|
15303
|
-
}) => {
|
15304
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
15305
|
-
style: {
|
15306
|
-
width: '205px',
|
15307
|
-
height: '185px'
|
15308
|
-
}
|
15309
|
-
}, /*#__PURE__*/React__default.createElement("use", {
|
15310
|
-
xlinkHref: `${sincoIconos}#${EmptyStateImageUrls[_state]}`
|
15311
|
-
}));
|
15312
|
-
};
|
15313
15301
|
const EmptyStateComponent = ({
|
15314
|
-
state:
|
15302
|
+
state: _state = 'create',
|
15315
15303
|
title,
|
15316
15304
|
content,
|
15317
15305
|
actions,
|
15318
|
-
icon: _icon =
|
15319
|
-
|
15320
|
-
|
15306
|
+
icon: _icon = sincoIconos,
|
15307
|
+
iconStyle: _iconStyle = {
|
15308
|
+
width: '205px',
|
15309
|
+
height: '185px'
|
15310
|
+
}
|
15321
15311
|
}) => {
|
15322
15312
|
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
15323
15313
|
theme: SincoTheme
|
@@ -15327,7 +15317,11 @@ const EmptyStateComponent = ({
|
|
15327
15317
|
padding: 1,
|
15328
15318
|
spacing: 2,
|
15329
15319
|
height: "100%"
|
15330
|
-
}, /*#__PURE__*/React__default.createElement(Box$2, null,
|
15320
|
+
}, /*#__PURE__*/React__default.createElement(Box$2, null, /*#__PURE__*/React__default.createElement("svg", {
|
15321
|
+
style: _iconStyle
|
15322
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
15323
|
+
xlinkHref: `${_icon}#${EmptyStateImageUrls[_state]}`
|
15324
|
+
}))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
15331
15325
|
spacing: 2
|
15332
15326
|
}, title && /*#__PURE__*/React__default.createElement(Typography$1, {
|
15333
15327
|
variant: "h6",
|
package/package.json
CHANGED
@@ -5,10 +5,8 @@ export interface EmptyStateProperties {
|
|
5
5
|
state?: EmptyStateStates;
|
6
6
|
title?: string;
|
7
7
|
content?: string;
|
8
|
-
imageWidth?: string;
|
9
|
-
imageHeight?: string;
|
10
8
|
actions?: ReactNode;
|
11
|
-
icon?:
|
9
|
+
icon?: string;
|
12
10
|
iconStyle?: React.CSSProperties;
|
13
11
|
}
|
14
|
-
export declare const EmptyStateComponent: ({ state, title, content, actions, icon, }: EmptyStateProperties) => JSX.Element;
|
12
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, icon, iconStyle, }: EmptyStateProperties) => JSX.Element;
|