@sinco/react 1.1.2-rc.47 → 1.1.2-rc.48
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.esm.js
CHANGED
@@ -13241,12 +13241,12 @@ var DefaultIcon = function DefaultIcon(_ref) {
|
|
13241
13241
|
width: '210px',
|
13242
13242
|
height: '185px'
|
13243
13243
|
} : _ref$iconStyle;
|
13244
|
-
var
|
13244
|
+
var symbolId = emptyStateIcons[state];
|
13245
13245
|
return React__default.createElement("svg", {
|
13246
13246
|
"data-testid": "empty-state-icon",
|
13247
13247
|
style: iconStyle
|
13248
13248
|
}, React__default.createElement("use", {
|
13249
|
-
|
13249
|
+
href: "#".concat(symbolId)
|
13250
13250
|
}));
|
13251
13251
|
};
|
13252
13252
|
var EmptyState = function EmptyState(_ref2) {
|
@@ -13260,7 +13260,8 @@ var EmptyState = function EmptyState(_ref2) {
|
|
13260
13260
|
_ref2$icon = _ref2.icon,
|
13261
13261
|
icon = _ref2$icon === void 0 ? React__default.createElement(DefaultIcon, {
|
13262
13262
|
state: state,
|
13263
|
-
iconStyle: iconStyle
|
13263
|
+
iconStyle: iconStyle,
|
13264
|
+
title: ''
|
13264
13265
|
}) : _ref2$icon;
|
13265
13266
|
return React__default.createElement(Stack$1, {
|
13266
13267
|
alignItems: "center",
|
package/package.json
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
+
import emptyStateIcons from '../assets/emptyState-icons.svg';
|
2
3
|
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
3
4
|
export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
|
4
5
|
export interface EmptyStateProperties {
|
5
6
|
icon?: ReactNode;
|
6
|
-
state?:
|
7
|
+
state?: keyof typeof emptyStateIcons | string;
|
7
8
|
title: string;
|
8
9
|
subtitle?: string;
|
9
10
|
actions?: ReactNode;
|