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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.4-rc.1",
3
+ "version": "1.0.4-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,2 @@
1
1
  export * from './lib/Theme';
2
- export { default as ToastNotification } from './lib/toastNotification/ToastNofitication';
3
- export * from './lib/toastNotification/ToastNofitication';
4
- export * from './lib/toastNotification/interfaces';
2
+ export * from './lib/Components';
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ interface Option {
3
+ }
4
+ interface Toast {
5
+ type?: string;
6
+ subtitle?: string;
7
+ time?: number | any;
8
+ title?: string;
9
+ dataOpt?: Option[];
10
+ actions?: React.ReactNode;
11
+ seeMore?: boolean;
12
+ }
13
+ export declare const ToastNotification: (toast: Toast) => JSX.Element;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './ToastNotification/ToastNofitication';
2
+ export * from './pageHeader/PageHeader';
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ interface BreadcrumbCode {
3
+ link: string;
4
+ name: string;
5
+ }
6
+ interface Pageheader {
7
+ back?: React.ReactNode;
8
+ title?: string;
9
+ subtitle?: string;
10
+ breadcrumbs?: BreadcrumbCode[];
11
+ actions?: React.ReactNode;
12
+ tabs?: React.ReactNode;
13
+ }
14
+ declare const PageHeader: (page: Pageheader) => JSX.Element;
15
+ export default PageHeader;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { Toast } from './interfaces';
3
- declare const ToastNotification: (toast: Toast) => JSX.Element;
4
- export default ToastNotification;
@@ -1,22 +0,0 @@
1
- import { ReactElement } from "react";
2
- export interface Option {
3
- }
4
- export interface Toast {
5
- type?: string;
6
- description?: string;
7
- time?: number | any;
8
- title?: string;
9
- dataOpt?: Option[];
10
- actions?: React.ReactNode;
11
- seeMore?: boolean;
12
- position?: string;
13
- }
14
- export interface IconMap {
15
- [key: string]: ReactElement;
16
- }
17
- export interface ColorMap {
18
- [key: string]: "success" | "error" | "warning" | "info";
19
- }
20
- export interface position {
21
- [key: string]: "center" | "flex-end" | "flex-start";
22
- }