@sinco/react 1.0.14-rc.60 → 1.0.14-rc.62

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -15300,14 +15300,10 @@ const EmptyStateImageUrls = {
15300
15300
  };
15301
15301
  const DefaultIcon = ({
15302
15302
  state: _state = 'create',
15303
- imageWidth,
15304
- imageHeight
15303
+ iconStyle
15305
15304
  }) => {
15306
15305
  return /*#__PURE__*/React__default.createElement("svg", {
15307
- style: {
15308
- width: imageWidth,
15309
- height: imageHeight
15310
- }
15306
+ style: iconStyle
15311
15307
  }, /*#__PURE__*/React__default.createElement("use", {
15312
15308
  xlinkHref: `${emptyStateIcons}#${EmptyStateImageUrls[_state]}`
15313
15309
  }));
@@ -15318,12 +15314,10 @@ const EmptyStateComponent = ({
15318
15314
  content,
15319
15315
  actions,
15320
15316
  containerHeight: _containerHeight = '100%',
15321
- imageWidth: _imageWidth = '210px',
15322
- imageHeight: _imageHeight = '185px',
15317
+ iconStyle,
15323
15318
  icon: _icon = /*#__PURE__*/React__default.createElement(DefaultIcon, {
15324
15319
  state: _state2,
15325
- imageWidth: _imageWidth,
15326
- imageHeight: _imageHeight
15320
+ iconStyle: iconStyle
15327
15321
  })
15328
15322
  }) => {
15329
15323
  return /*#__PURE__*/React__default.createElement(Stack$1, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.14-rc.60",
3
+ "version": "1.0.14-rc.62",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
3
3
  export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
4
4
  export interface EmptyStateProperties {
@@ -7,8 +7,7 @@ export interface EmptyStateProperties {
7
7
  title?: string;
8
8
  content?: string;
9
9
  actions?: ReactNode;
10
- imageWidth?: string;
11
- imageHeight?: string;
10
+ iconStyle?: React.CSSProperties;
12
11
  containerHeight?: string;
13
12
  }
14
- export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, imageWidth, imageHeight, icon, }: EmptyStateProperties) => JSX.Element;
13
+ export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;