@sinco/react 1.0.7-rc.16 → 1.0.7-rc.17
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/index.js +10609 -1407
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/Components/Drawer/Drawer.d.ts +11 -0
- package/src/lib/Components/ToastNotification/ToastNofitication.d.ts +24 -0
- package/src/lib/Components/index.d.ts +3 -0
- package/src/lib/Components/pageHeader/PageHeader.d.ts +15 -0
- package/src/lib/Theme/components.d.ts +10 -0
- package/src/lib/Theme/index.d.ts +0 -40
- package/src/lib/Theme/typography.d.ts +14 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export declare const DrawerComponent: React.FC<DrawerComponentProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export declare const ToastNotification: (toast: Toast) => JSX.Element;
|
|
@@ -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
|
+
export declare const PageHeader: (page: Pageheader) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import { Components } from '@mui/material';
|
|
2
|
+
declare module '@mui/material/Chip' {
|
|
3
|
+
interface ChipPropsSizeOverrides {
|
|
4
|
+
xsmall: true;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
declare module "@mui/material/Checkbox" {
|
|
8
|
+
interface CheckboxPropsSizeOverrides {
|
|
9
|
+
xsmall: true;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
2
12
|
declare const components: Components;
|
|
3
13
|
export default components;
|
package/src/lib/Theme/index.d.ts
CHANGED
|
@@ -1,41 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare module "@mui/material/styles" {
|
|
3
|
-
interface TypographyVariants {
|
|
4
|
-
body3: React.CSSProperties;
|
|
5
|
-
}
|
|
6
|
-
interface TypographyVariantsOptions {
|
|
7
|
-
body3?: React.CSSProperties;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
declare module "@mui/material/Typography" {
|
|
11
|
-
interface TypographyPropsVariantOverrides {
|
|
12
|
-
body3: true;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
declare module "@mui/material/Chip" {
|
|
16
|
-
interface ChipPropsSize {
|
|
17
|
-
xsmall: React.CSSProperties;
|
|
18
|
-
}
|
|
19
|
-
interface ChipSizeOptions {
|
|
20
|
-
xsmall?: React.CSSProperties;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
declare module "@mui/material/Chip" {
|
|
24
|
-
interface ChipPropsSizeOverrides {
|
|
25
|
-
xsmall: true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
declare module "@mui/material/Checkbox" {
|
|
29
|
-
interface CheckboxPropsSize {
|
|
30
|
-
xsmall: React.CSSProperties;
|
|
31
|
-
}
|
|
32
|
-
interface CheckboxSizeOptions {
|
|
33
|
-
xsmall?: React.CSSProperties;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
declare module "@mui/material/Checkbox" {
|
|
37
|
-
interface CheckboxPropsSizeOverrides {
|
|
38
|
-
xsmall: true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
1
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
3
|
+
declare module '@mui/material/styles' {
|
|
4
|
+
interface TypographyVariants {
|
|
5
|
+
body3: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
interface TypographyVariantsOptions {
|
|
8
|
+
body3?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare module '@mui/material/Typography' {
|
|
12
|
+
interface TypographyPropsVariantOverrides {
|
|
13
|
+
body3: true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
2
16
|
declare const typography: TypographyOptions;
|
|
3
17
|
export default typography;
|