@sinco/react 1.1.2-rc.47 → 1.1.2-rc.48

Sign up to get free protection for your applications and to get access to all the features.
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 svgPath = "".concat(emptyStateIcons, "#").concat(EmptyStateImageUrls[state]);
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
- xlinkHref: svgPath
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.1.2-rc.47",
3
+ "version": "1.1.2-rc.48",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -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?: EmptyStateStates;
7
+ state?: keyof typeof emptyStateIcons | string;
7
8
  title: string;
8
9
  subtitle?: string;
9
10
  actions?: ReactNode;