@sinco/react 1.0.13-rc.0 → 1.0.13-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1490 -157
- package/package.json +1 -1
- package/src/lib/Components/PageHeader.d.ts +12 -0
- package/src/lib/Components/ToastNotification.d.ts +20 -0
- package/src/lib/Components/index.d.ts +2 -0
package/package.json
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const PageHeaderContent: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
4
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
5
|
+
interface PageheaderProperties {
|
6
|
+
title: string;
|
7
|
+
subtitle?: string;
|
8
|
+
actions?: React.ReactNode;
|
9
|
+
buttonBack?: React.ReactNode;
|
10
|
+
}
|
11
|
+
export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, }: PageheaderProperties) => JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
import React from 'react';
|
3
|
+
export interface Option {
|
4
|
+
}
|
5
|
+
export interface ToastNotificationProperties {
|
6
|
+
type?: string;
|
7
|
+
subtitle?: string;
|
8
|
+
time?: number | any;
|
9
|
+
title?: string;
|
10
|
+
dataOpt?: Option[];
|
11
|
+
actions?: React.ReactNode;
|
12
|
+
seeMore?: boolean;
|
13
|
+
}
|
14
|
+
export interface handleChangeToastIcon {
|
15
|
+
[key: string]: ReactElement;
|
16
|
+
}
|
17
|
+
export interface handleToastColor {
|
18
|
+
[key: string]: 'success' | 'error' | 'warning' | 'info';
|
19
|
+
}
|
20
|
+
export declare const ToastNotificationComponent: (toast: ToastNotificationProperties) => JSX.Element;
|