@sinco/react 1.0.15-rc.1 → 1.0.15-rc.10

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.1",
3
+ "version": "1.0.15-rc.10",
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,4 +1,5 @@
1
1
  export * from './EmptyState';
2
2
  export * from './Drawer';
3
3
  export * from './FooterAction';
4
- export * from './PageHeader';
4
+ export * from './toastNotification/ToastBase';
5
+ export * from './toastNotification/ToastNotification';
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export type toastType = "success" | "error" | "warning" | "info";
3
+ export interface ToastBaseProperties {
4
+ type?: toastType;
5
+ subtitle?: string;
6
+ title: string;
7
+ time?: number | any;
8
+ dataOpt?: string[];
9
+ actions?: React.ReactNode;
10
+ seeMore?: boolean;
11
+ }
12
+ export declare const ToastNotification: (toast: ToastBaseProperties) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ToastBaseProperties } from "./ToastBase";
3
+ interface ToastNotificationProperties {
4
+ toast: ToastBaseProperties | ToastBaseProperties[];
5
+ }
6
+ export declare const ToastNotificationComponent: ({ toast, }: ToastNotificationProperties) => JSX.Element;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const useProgress: (timeProgress: number) => {
2
+ progressToast: number;
3
+ };
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- interface PageheaderProperties {
3
- title: string | React.ReactNode;
4
- subtitle?: string | React.ReactNode;
5
- actions?: React.ReactNode;
6
- buttonBack?: React.ReactNode;
7
- fixed?: boolean;
8
- }
9
- export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
10
- export {};
@@ -1 +0,0 @@
1
- export * from './dynamicColor';