@sinco/react 1.0.15-rc.21 → 1.0.15-rc.22

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.15-rc.21",
3
+ "version": "1.0.15-rc.22",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -20,5 +20,5 @@
20
20
  "module": "./index.js",
21
21
  "main": "./index.js",
22
22
  "type": "module",
23
- "types": "./src/index.d.ts"
23
+ "types": "./src\\index.d.ts"
24
24
  }
@@ -1,15 +1,14 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
3
- export declare enum EmptyStateImageUrls {
4
- error = "error",
5
- search = "search",
6
- noResult = "noResult",
7
- create = "create"
8
- }
3
+ export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
9
4
  export interface EmptyStateProperties {
5
+ icon?: ReactNode;
10
6
  state?: EmptyStateStates;
11
- title?: string;
12
- content?: string;
7
+ title: string;
8
+ subtitle?: string;
13
9
  actions?: ReactNode;
10
+ iconStyle?: React.CSSProperties;
11
+ containerHeight?: string;
14
12
  }
15
- export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
13
+ export declare const EmptyStateComponent: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
14
+ export { EmptyStateComponent as EmptyState };
File without changes