@sinco/react 1.0.4-rc.10 → 1.0.4-rc.11
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +286 -4411
- package/package.json +1 -1
- package/src/components/drawer/drawer.d.ts +12 -0
- package/src/components/index.d.ts +1 -0
- package/src/index.d.ts +1 -1
- package/src/lib/Theme/index.d.ts +14 -0
- package/src/lib/Theme/typography.d.ts +0 -14
- package/src/lib/Components/ToastNotification/ToastNofitication.d.ts +0 -14
- package/src/lib/Components/index.d.ts +0 -2
- package/src/lib/Components/pageHeader/PageHeader.d.ts +0 -15
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 @@
|
|
1
|
+
export * from './drawer/drawer';
|
package/src/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export * from './lib/Theme';
|
2
|
-
export * from './
|
2
|
+
export * from './components';
|
package/src/lib/Theme/index.d.ts
CHANGED
@@ -1 +1,15 @@
|
|
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
|
+
}
|
1
15
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
@@ -1,17 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
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
|
-
}
|
16
2
|
declare const typography: TypographyOptions;
|
17
3
|
export default typography;
|
@@ -1,14 +0,0 @@
|
|
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 {};
|
@@ -1,15 +0,0 @@
|
|
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;
|