@sinco/react 1.0.11-rc.13 → 1.0.11-rc.14
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 +5891 -5137
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/Components/Drawer.d.ts +7 -9
- package/src/lib/Components/EmptyState.d.ts +9 -9
- package/src/lib/Components/PageHeader.d.ts +14 -15
- package/src/lib/Components/ToastNofitication.d.ts +11 -7
- package/src/lib/Theme/typography.d.ts +8 -0
- package/src/lib/Utils/dynamicColor.d.ts +1 -1
- package/src/lib/Utils/index.d.ts +1 -0
- package/index.d.ts +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -1,13 +1,11 @@
|
|
1
|
-
import { ReactNode } from
|
2
|
-
export type
|
3
|
-
export interface
|
4
|
-
|
1
|
+
import React, { ReactNode } from "react";
|
2
|
+
export type Anchor = "left" | "right";
|
3
|
+
export interface DrawerComponentProps {
|
4
|
+
titulo: string;
|
5
5
|
children: ReactNode;
|
6
|
-
|
7
|
-
showActions?: boolean;
|
8
|
-
position?: handleDrawerPosition;
|
9
|
-
width: string;
|
6
|
+
acciones: ReactNode;
|
10
7
|
open: boolean;
|
11
8
|
onClose: () => void;
|
9
|
+
anchor?: Anchor;
|
12
10
|
}
|
13
|
-
export declare const DrawerComponent:
|
11
|
+
export declare const DrawerComponent: React.FC<DrawerComponentProps>;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
3
|
-
export declare enum EmptyStateImageUrls {
|
4
|
-
error = "error",
|
5
|
-
search = "search",
|
6
|
-
noResult = "noResult",
|
7
|
-
create = "create"
|
8
|
-
}
|
9
2
|
export interface EmptyStateProperties {
|
10
|
-
state?:
|
3
|
+
state?: States;
|
11
4
|
title?: string;
|
12
5
|
content?: string;
|
13
6
|
actions?: ReactNode;
|
14
7
|
}
|
15
|
-
export
|
8
|
+
export type States = 'create' | 'error' | 'noresult' | 'search';
|
9
|
+
export declare enum UrlImage {
|
10
|
+
error = "error",
|
11
|
+
search = "search",
|
12
|
+
noresult = "noresult",
|
13
|
+
create = "create"
|
14
|
+
}
|
15
|
+
export declare const EmptyState: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
|
@@ -1,19 +1,18 @@
|
|
1
|
-
import React from
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
10
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
11
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "direction" | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "spacing" | "divider" | "useFlexGap" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
12
|
-
interface PageheaderProperties {
|
13
|
-
title: string;
|
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;
|
14
9
|
subtitle?: string;
|
10
|
+
breadcrumbs?: BreadcrumbCode[];
|
15
11
|
actions?: React.ReactNode;
|
16
|
-
|
12
|
+
tabs?: React.ReactNode;
|
17
13
|
}
|
18
|
-
export declare const
|
14
|
+
export declare const PageContent: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
16
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
17
|
+
export declare const PageHeader: (page: Pageheader) => JSX.Element;
|
19
18
|
export {};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ReactElement } from
|
2
|
-
import React from
|
1
|
+
import { ReactElement } from "react";
|
2
|
+
import React from "react";
|
3
3
|
export interface Option {
|
4
4
|
}
|
5
|
-
export interface
|
5
|
+
export interface Toast {
|
6
6
|
type?: string;
|
7
7
|
subtitle?: string;
|
8
8
|
time?: number | any;
|
@@ -10,11 +10,15 @@ export interface ToastNotificationProperties {
|
|
10
10
|
dataOpt?: Option[];
|
11
11
|
actions?: React.ReactNode;
|
12
12
|
seeMore?: boolean;
|
13
|
+
position?: string;
|
13
14
|
}
|
14
|
-
export interface
|
15
|
+
export interface IconMap {
|
15
16
|
[key: string]: ReactElement;
|
16
17
|
}
|
17
|
-
export interface
|
18
|
-
[key: string]:
|
18
|
+
export interface ColorMap {
|
19
|
+
[key: string]: "success" | "error" | "warning" | "info";
|
19
20
|
}
|
20
|
-
export
|
21
|
+
export interface position {
|
22
|
+
[key: string]: "center" | "end" | "start";
|
23
|
+
}
|
24
|
+
export declare const ToastNotification: (toast: Toast) => JSX.Element;
|
@@ -3,9 +3,17 @@ import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
3
3
|
declare module '@mui/material/styles' {
|
4
4
|
interface TypographyVariants {
|
5
5
|
body3: React.CSSProperties;
|
6
|
+
subtitle3: React.CSSProperties;
|
6
7
|
}
|
7
8
|
interface TypographyVariantsOptions {
|
8
9
|
body3?: React.CSSProperties;
|
10
|
+
subtitle3?: React.CSSProperties;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
declare module '@mui/material/Typography' {
|
14
|
+
interface TypographyPropsVariantOverrides {
|
15
|
+
body3: true;
|
16
|
+
subtitle3: true;
|
9
17
|
}
|
10
18
|
}
|
11
19
|
export declare const typography: TypographyOptions;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PaletteColor, TypeBackground } from "@mui/material";
|
2
|
-
export declare const
|
2
|
+
export declare const dynamicColor: (src: string) => Promise<{
|
3
3
|
primaryColor: PaletteColor;
|
4
4
|
secondaryColor: PaletteColor;
|
5
5
|
backgroundColor: TypeBackground;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dynamicColor';
|
package/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './src/lib/Utils/dynamicColor';
|