@sinco/react 1.0.13 → 1.0.14-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5135 -6503
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/Components/SincoIcon.d.ts +17 -0
- package/src/lib/Components/index.d.ts +1 -2
- package/src/lib/Components/PageHeader.d.ts +0 -12
- package/src/lib/Components/ToastNotification.d.ts +0 -20
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export type SincoIconId = 'datoContacto' | 'datoNotificaciones' | 'documentos' | 'especialidades' | 'informacionGeneral' | 'novedades' | 'validacionPersonas';
|
3
|
+
export declare enum SincoIconImageUrl {
|
4
|
+
datoContacto = "sinco-datoContacto",
|
5
|
+
datoNotificaciones = "sinco-datoNotificaciones",
|
6
|
+
documentos = "sinco-documentos",
|
7
|
+
especialidades = "sinco-especialidades",
|
8
|
+
informacionGeneral = "sinco-informacionGeneral",
|
9
|
+
novedades = "sinco-novedades",
|
10
|
+
validacionPersonas = "sinco-validacionPersonas"
|
11
|
+
}
|
12
|
+
export interface SincoIconProperties {
|
13
|
+
icon: SincoIconId;
|
14
|
+
width?: string;
|
15
|
+
height?: string;
|
16
|
+
}
|
17
|
+
export declare const SincoIcon: ({ icon, width, height }: SincoIconProperties) => JSX.Element;
|
@@ -1,12 +0,0 @@
|
|
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 {};
|
@@ -1,20 +0,0 @@
|
|
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;
|