@sinco/react 1.0.10-rc.9 → 1.0.11-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +57 -0
- package/index.js +1982 -476
- package/package.json +1 -1
- package/src/Index.d.ts +4 -0
- package/src/lib/Components/Drawer.d.ts +7 -7
- package/src/lib/Components/EmptyState.d.ts +5 -5
- package/src/lib/Components/Index.d.ts +4 -0
- package/src/lib/Components/PageHeader.d.ts +19 -0
- package/src/lib/Components/ToastNofitication.d.ts +19 -0
- package/src/lib/Hooks/Index.d.ts +1 -0
- package/src/lib/Hooks/UseDynamicColor.d.ts +3 -0
- package/src/lib/Theme/breakpoints.d.ts +1 -2
- package/src/lib/Theme/components.d.ts +11 -2
- package/src/lib/Theme/mixins.d.ts +1 -2
- package/src/lib/Theme/palette.d.ts +1 -2
- package/src/lib/Theme/shadows.d.ts +1 -2
- package/src/lib/Theme/typography.d.ts +15 -2
- package/src/lib/Utils/{dynamicColor.d.ts → DynamicColor.d.ts} +2 -2
- package/src/lib/Utils/Index.d.ts +1 -0
- package/src/index.d.ts +0 -4
- package/src/lib/Components/index.d.ts +0 -2
- package/src/lib/Hooks/index.d.ts +0 -1
- package/src/lib/Hooks/useDynamicColor.d.ts +0 -3
- package/src/lib/Utils/index.d.ts +0 -1
- /package/src/lib/Theme/{index.d.ts → Index.d.ts} +0 -0
package/package.json
CHANGED
package/src/Index.d.ts
ADDED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { ReactNode } from
|
2
|
-
export type Anchor =
|
3
|
-
export interface
|
4
|
-
titulo: string;
|
5
|
-
children: ReactNode;
|
6
|
-
acciones: ReactNode;
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export type Anchor = 'left' | 'right';
|
3
|
+
export interface DrawerComponentProperties {
|
7
4
|
open: boolean;
|
8
5
|
onClose: () => void;
|
9
6
|
anchor?: Anchor;
|
7
|
+
title: string;
|
8
|
+
content: ReactNode;
|
9
|
+
actions: ReactNode;
|
10
10
|
}
|
11
|
-
export declare const DrawerComponent: ({ open, onClose,
|
11
|
+
export declare const DrawerComponent: ({ open, onClose, anchor, title, content, actions, }: DrawerComponentProperties) => JSX.Element;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
export interface EmptyStateProperties {
|
3
|
-
state?:
|
3
|
+
state?: EmptyStateStates;
|
4
4
|
title?: string;
|
5
5
|
content?: string;
|
6
6
|
actions?: ReactNode;
|
7
7
|
}
|
8
|
-
export type
|
9
|
-
export declare enum
|
8
|
+
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
9
|
+
export declare enum EmptyStateImageUrls {
|
10
10
|
error = "error",
|
11
11
|
search = "search",
|
12
|
-
|
12
|
+
noResult = "noResult",
|
13
13
|
create = "create"
|
14
14
|
}
|
15
|
-
export declare const
|
15
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const PageHeaderContent: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
3
|
+
children?: React.ReactNode;
|
4
|
+
direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
|
5
|
+
spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
|
6
|
+
divider?: React.ReactNode;
|
7
|
+
useFlexGap?: boolean | undefined;
|
8
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
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;
|
14
|
+
subtitle?: string;
|
15
|
+
actions?: React.ReactNode;
|
16
|
+
buttonBack?: React.ReactNode;
|
17
|
+
}
|
18
|
+
export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, }: PageheaderProperties) => JSX.Element;
|
19
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React, { ReactElement } from 'react';
|
2
|
+
export interface Option {
|
3
|
+
}
|
4
|
+
export interface ToastNotificationProperties {
|
5
|
+
type?: string;
|
6
|
+
time?: number | any;
|
7
|
+
title?: string;
|
8
|
+
subtitle?: string;
|
9
|
+
dataOpt?: Option[];
|
10
|
+
actions?: React.ReactNode;
|
11
|
+
seeMore?: boolean;
|
12
|
+
}
|
13
|
+
export interface handleChangeToastIcon {
|
14
|
+
[key: string]: ReactElement;
|
15
|
+
}
|
16
|
+
export interface handleToastColor {
|
17
|
+
[key: string]: 'success' | 'error' | 'warning' | 'info';
|
18
|
+
}
|
19
|
+
export declare const ToastNotification: (toast: ToastNotificationProperties) => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './UseDynamicColor';
|
@@ -1,3 +1,12 @@
|
|
1
1
|
import { Components } from '@mui/material';
|
2
|
-
declare
|
3
|
-
|
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
|
+
}
|
12
|
+
export declare const components: Components;
|
@@ -1,3 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
2
|
-
declare
|
3
|
-
|
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
|
+
export declare const typography: TypographyOptions;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PaletteColor, TypeBackground } from "@mui/material";
|
2
|
-
declare const
|
2
|
+
declare const DynamicColor: (src: string) => Promise<{
|
3
3
|
primaryColor: PaletteColor;
|
4
4
|
secondaryColor: PaletteColor;
|
5
5
|
backgroundColor: TypeBackground;
|
6
6
|
}>;
|
7
|
-
export default
|
7
|
+
export default DynamicColor;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './DynamicColor';
|
package/src/index.d.ts
DELETED
package/src/lib/Hooks/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './useDynamicColor';
|
package/src/lib/Utils/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dynamicColor';
|
File without changes
|