@sinco/react 1.0.11-rc.9 → 1.0.12-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.d.ts +1 -0
- package/index.js +8580 -1967
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/Components/Drawer.d.ts +9 -8
- package/src/lib/Components/EmptyState.d.ts +9 -9
- package/src/lib/Components/FooterAction.d.ts +8 -0
- package/src/lib/Components/index.d.ts +1 -0
- package/src/lib/Theme/breakpoints.d.ts +1 -2
- package/src/lib/Theme/components.d.ts +11 -2
- package/src/lib/Theme/index.d.ts +1 -14
- package/src/lib/Theme/mixins.d.ts +1 -2
- package/src/lib/Theme/palette.d.ts +2 -2
- package/src/lib/Theme/shadows.d.ts +1 -2
- package/src/lib/Theme/theme.d.ts +1 -0
- package/src/lib/Theme/typography.d.ts +10 -2
- package/src/lib/Utils/dynamicColor.d.ts +1 -2
- package/src/lib/Utils/index.d.ts +0 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
import
|
2
|
-
export type
|
3
|
-
export interface
|
4
|
-
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export type handleDrawerPosition = 'left' | 'right';
|
3
|
+
export interface DrawerComponentProperties {
|
4
|
+
title: string;
|
5
5
|
children: ReactNode;
|
6
|
-
|
6
|
+
renderActions: ReactNode;
|
7
|
+
showActions?: boolean;
|
8
|
+
position?: handleDrawerPosition;
|
9
|
+
width: string;
|
7
10
|
open: boolean;
|
8
11
|
onClose: () => void;
|
9
|
-
anchor?: Anchor;
|
10
12
|
}
|
11
|
-
declare const DrawerComponent:
|
12
|
-
export default DrawerComponent;
|
13
|
+
export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose, }: DrawerComponentProperties) => JSX.Element;
|
@@ -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
|
+
}
|
2
9
|
export interface EmptyStateProperties {
|
3
|
-
state?:
|
10
|
+
state?: EmptyStateStates;
|
4
11
|
title?: string;
|
5
12
|
content?: string;
|
6
13
|
actions?: ReactNode;
|
7
14
|
}
|
8
|
-
export
|
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;
|
15
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface FooterActionsProperties {
|
3
|
+
labelChangeCounter: React.ReactNode;
|
4
|
+
renderLeftContent?: React.ReactNode;
|
5
|
+
renderRightContent?: React.ReactNode;
|
6
|
+
}
|
7
|
+
export declare const FooterActionComponent: ({ renderLeftContent, renderRightContent, labelChangeCounter, }: FooterActionsProperties) => JSX.Element;
|
8
|
+
export {};
|
@@ -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;
|
package/src/lib/Theme/index.d.ts
CHANGED
@@ -1,15 +1,2 @@
|
|
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
1
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
2
|
+
export declare const AdproSincoTheme: import("@mui/material/styles").Theme;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PaletteOptions } from '@mui/material';
|
2
|
-
declare const palette: PaletteOptions;
|
3
|
-
export
|
2
|
+
export declare const palette: PaletteOptions;
|
3
|
+
export declare const paletteADPRO: PaletteOptions;
|
package/src/lib/Theme/theme.d.ts
CHANGED
@@ -1,3 +1,11 @@
|
|
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
|
+
export declare const typography: TypographyOptions;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { PaletteColor, TypeBackground } from "@mui/material";
|
2
|
-
declare const
|
2
|
+
export declare const DynamicColor: (src: string) => Promise<{
|
3
3
|
primaryColor: PaletteColor;
|
4
4
|
secondaryColor: PaletteColor;
|
5
5
|
backgroundColor: TypeBackground;
|
6
6
|
}>;
|
7
|
-
export default dynamicColor;
|
package/src/lib/Utils/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dynamicColor';
|