@sinco/react 1.0.4-rc.8 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +814 -1419
- package/package.json +1 -1
- package/src/lib/Components/Drawer/Drawer.d.ts +12 -0
- package/src/lib/Components/ToastNotification/ToastNofitication.d.ts +25 -0
- package/src/lib/Components/index.d.ts +3 -1
- package/src/lib/Components/pageHeader/PageHeader.d.ts +15 -0
- /package/src/lib/Components/{EmptyState.d.ts → EmptyState/EmptyState.d.ts} +0 -0
package/package.json
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
import React, { ReactNode } from "react";
|
2
|
+
export type Anchor = "left" | "right";
|
3
|
+
export interface DrawerComponentProps {
|
4
|
+
titulo: string;
|
5
|
+
children: ReactNode;
|
6
|
+
acciones: ReactNode;
|
7
|
+
open: boolean;
|
8
|
+
onClose: () => void;
|
9
|
+
anchor?: Anchor;
|
10
|
+
}
|
11
|
+
declare const DrawerComponent: React.FC<DrawerComponentProps>;
|
12
|
+
export default DrawerComponent;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ReactElement } from "react";
|
2
|
+
import React from "react";
|
3
|
+
export interface Option {
|
4
|
+
}
|
5
|
+
export interface Toast {
|
6
|
+
type?: string;
|
7
|
+
subtitle?: string;
|
8
|
+
time?: number | any;
|
9
|
+
title?: string;
|
10
|
+
dataOpt?: Option[];
|
11
|
+
actions?: React.ReactNode;
|
12
|
+
seeMore?: boolean;
|
13
|
+
position?: string;
|
14
|
+
}
|
15
|
+
export interface IconMap {
|
16
|
+
[key: string]: ReactElement;
|
17
|
+
}
|
18
|
+
export interface ColorMap {
|
19
|
+
[key: string]: "success" | "error" | "warning" | "info";
|
20
|
+
}
|
21
|
+
export interface position {
|
22
|
+
[key: string]: "center" | "end" | "start";
|
23
|
+
}
|
24
|
+
declare const ToastNotification: (toast: Toast) => JSX.Element;
|
25
|
+
export default ToastNotification;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from "react";
|
2
|
+
interface BreadcrumbCode {
|
3
|
+
link: string;
|
4
|
+
name: string;
|
5
|
+
}
|
6
|
+
export 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;
|
File without changes
|