@sinco/react 1.1.2-rc.43 → 1.1.2-rc.44

Sign up to get free protection for your applications and to get access to all the features.
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$state = _ref.state,
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
- href: "".concat(emptyStateIcons, "#").concat(EmptyStateImageUrls[state])
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,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.1.2-rc.43",
3
+ "version": "1.1.2-rc.44",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -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;