@sinco/react 1.1.2-rc.42 → 1.1.2-rc.44
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
|
@@ -13234,9 +13234,7 @@ var EmptyStateImageUrls = {
|
|
|
13234
13234
|
search: 'search'
|
|
13235
13235
|
};
|
|
13236
13236
|
var DefaultIcon = function DefaultIcon(_ref) {
|
|
13237
|
-
var _ref$
|
|
13238
|
-
state = _ref$state === void 0 ? 'create' : _ref$state,
|
|
13239
|
-
_ref$iconStyle = _ref.iconStyle,
|
|
13237
|
+
var _ref$iconStyle = _ref.iconStyle,
|
|
13240
13238
|
iconStyle = _ref$iconStyle === void 0 ? {
|
|
13241
13239
|
width: '210px',
|
|
13242
13240
|
height: '185px'
|
|
@@ -13245,7 +13243,7 @@ var DefaultIcon = function DefaultIcon(_ref) {
|
|
|
13245
13243
|
"data-testid": "empty-state-icon",
|
|
13246
13244
|
style: iconStyle
|
|
13247
13245
|
}, React__default.createElement("use", {
|
|
13248
|
-
xlinkHref: "".concat(emptyStateIcons, "#").concat(EmptyStateImageUrls
|
|
13246
|
+
xlinkHref: "".concat(emptyStateIcons, "#").concat(EmptyStateImageUrls || "create")
|
|
13249
13247
|
}));
|
|
13250
13248
|
};
|
|
13251
13249
|
var EmptyState = function EmptyState(_ref2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
|
3
|
-
export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
|
|
4
3
|
export interface EmptyStateProperties {
|
|
5
4
|
icon?: ReactNode;
|
|
6
5
|
state?: EmptyStateStates;
|
|
@@ -10,4 +9,5 @@ export interface EmptyStateProperties {
|
|
|
10
9
|
iconStyle?: React.CSSProperties;
|
|
11
10
|
containerHeight?: string;
|
|
12
11
|
}
|
|
12
|
+
export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
|
|
13
13
|
export declare const EmptyState: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => React.JSX.Element;
|