@sinco/react 1.0.10-rc.20 → 1.0.10-rc.22
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 +299 -1762
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +3 -3
- package/src/lib/Components/index.d.ts +0 -2
- package/src/lib/Theme/breakpoints.d.ts +2 -1
- package/src/lib/Theme/components.d.ts +2 -11
- package/src/lib/Theme/index.d.ts +9 -0
- package/src/lib/Theme/mixins.d.ts +2 -1
- package/src/lib/Theme/palette.d.ts +2 -1
- package/src/lib/Theme/shadows.d.ts +2 -1
- package/src/lib/Theme/typography.d.ts +2 -15
- package/src/lib/Utils/dynamicColor.d.ts +2 -1
- package/src/lib/Components/PageHeader.d.ts +0 -11
- package/src/lib/Components/ToastNofitication.d.ts +0 -24
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export type Anchor =
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export type Anchor = 'left' | 'right';
|
3
3
|
export interface DrawerComponentProps {
|
4
4
|
titulo: string;
|
5
5
|
children: ReactNode;
|
@@ -8,4 +8,4 @@ export interface DrawerComponentProps {
|
|
8
8
|
onClose: () => void;
|
9
9
|
anchor?: Anchor;
|
10
10
|
}
|
11
|
-
export declare const DrawerComponent:
|
11
|
+
export declare const DrawerComponent: (props: DrawerComponentProps) => JSX.Element;
|
@@ -1,12 +1,3 @@
|
|
1
1
|
import { Components } from '@mui/material';
|
2
|
-
declare
|
3
|
-
|
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;
|
2
|
+
declare const components: Components;
|
3
|
+
export default components;
|
package/src/lib/Theme/index.d.ts
CHANGED
@@ -1 +1,10 @@
|
|
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
|
+
}
|
1
10
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
@@ -1,16 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
3
|
-
declare
|
4
|
-
|
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;
|
2
|
+
declare const typography: TypographyOptions;
|
3
|
+
export default typography;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { PaletteColor, TypeBackground } from "@mui/material";
|
2
|
-
|
2
|
+
declare const dynamicColor: (src: string) => Promise<{
|
3
3
|
primaryColor: PaletteColor;
|
4
4
|
secondaryColor: PaletteColor;
|
5
5
|
backgroundColor: TypeBackground;
|
6
6
|
}>;
|
7
|
+
export default dynamicColor;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export declare const PageContent: 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>, {}, {}>;
|
@@ -1,24 +0,0 @@
|
|
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;
|