@sinco/react 1.0.15-rc.14 → 1.0.15-rc.15

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.14",
3
+ "version": "1.0.15-rc.15",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './lib/Theme';
2
2
  export * from './lib/Components';
3
3
  export * from './lib/Hooks';
4
- export * from './lib/Utils';
4
+ export * from '..';
@@ -1,13 +1,14 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export type handleDrawerPosition = 'left' | 'right';
3
3
  export interface DrawerComponentProperties {
4
4
  title: string;
5
5
  children: ReactNode;
6
6
  renderActions: ReactNode;
7
7
  showActions?: boolean;
8
- position?: handleDrawerPosition;
8
+ anchor?: handleDrawerPosition;
9
9
  width: string;
10
10
  open: boolean;
11
11
  onClose: () => void;
12
+ sx?: React.CSSProperties;
12
13
  }
13
- export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose, }: DrawerComponentProperties) => JSX.Element;
14
+ export declare const DrawerComponent: ({ title, children, renderActions, showActions, anchor, width, open, onClose, sx, }: DrawerComponentProperties) => JSX.Element;
@@ -1,13 +1,15 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
3
- export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
3
+ export declare enum EmptyStateImageUrls {
4
+ error = "error",
5
+ search = "search",
6
+ noResult = "noResult",
7
+ create = "create"
8
+ }
4
9
  export interface EmptyStateProperties {
5
- icon?: ReactNode;
6
10
  state?: EmptyStateStates;
7
11
  title?: string;
8
12
  content?: string;
9
13
  actions?: ReactNode;
10
- iconStyle?: React.CSSProperties;
11
- containerHeight?: string;
12
14
  }
13
- export declare const EmptyStateComponent: ({ state, title, content, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
15
+ export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './dynamicColor';
File without changes