@sinco/react 1.0.14-rc.57 → 1.0.14-rc.59

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.js CHANGED
@@ -15317,8 +15317,13 @@ const EmptyStateComponent = ({
15317
15317
  title,
15318
15318
  content,
15319
15319
  actions,
15320
+ containerHeight: _containerHeight = '100%',
15321
+ imageWidth: _imageWidth = '210px',
15322
+ imageHeight: _imageHeight = '185px',
15320
15323
  icon: _icon = /*#__PURE__*/React__default.createElement(DefaultIcon, {
15321
- state: _state2
15324
+ state: _state2,
15325
+ imageWidth: _imageWidth,
15326
+ imageHeight: _imageHeight
15322
15327
  })
15323
15328
  }) => {
15324
15329
  return /*#__PURE__*/React__default.createElement(Stack$1, {
@@ -15326,7 +15331,7 @@ const EmptyStateComponent = ({
15326
15331
  justifyContent: "center",
15327
15332
  padding: 1,
15328
15333
  spacing: 2,
15329
- height: "100%"
15334
+ height: _containerHeight
15330
15335
  }, /*#__PURE__*/React__default.createElement(Box$2, null, _icon), /*#__PURE__*/React__default.createElement(Stack$1, {
15331
15336
  spacing: 2
15332
15337
  }, title && /*#__PURE__*/React__default.createElement(Typography$1, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.14-rc.57",
3
+ "version": "1.0.14-rc.59",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,14 +1,14 @@
1
- import React, { ReactNode } from 'react';
1
+ import { 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 {
5
+ icon?: ReactNode;
5
6
  state?: EmptyStateStates;
6
7
  title?: string;
7
8
  content?: string;
9
+ actions?: ReactNode;
8
10
  imageWidth?: string;
9
11
  imageHeight?: string;
10
- actions?: ReactNode;
11
- icon?: ReactNode;
12
- iconStyle?: React.CSSProperties;
12
+ containerHeight?: string;
13
13
  }
14
- export declare const EmptyStateComponent: ({ state, title, content, actions, icon, }: EmptyStateProperties) => JSX.Element;
14
+ export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, imageWidth, imageHeight, icon, }: EmptyStateProperties) => JSX.Element;