@sinco/react 1.1.2-rc.6 → 1.1.2-rc.60
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/6b9c10915ea2b5ed.gif +0 -0
- package/a133e8bb03869107.png +0 -0
- package/index.esm.d.ts +1 -0
- package/{index.js → index.esm.js} +319 -307
- package/package.json +3 -4
- package/src/index.d.ts +1 -0
- package/src/lib/Components/Drawer.d.ts +5 -5
- package/src/lib/Components/EmptyState.d.ts +1 -1
- package/src/lib/Components/FooterAction.d.ts +1 -1
- package/src/lib/Components/PageHeader.d.ts +2 -3
- package/src/lib/Components/Progress.d.ts +14 -0
- package/src/lib/Components/ToastNotification.d.ts +3 -3
- package/src/lib/Components/index.d.ts +1 -0
- package/src/lib/Hooks/useProgress.d.ts +1 -1
- package/src/lib/Theme/components.d.ts +10 -0
- package/src/lib/Theme/palette.d.ts +11 -0
- package/src/module.d.ts +9 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sinco/react",
|
3
|
-
"version": "1.1.2-rc.
|
3
|
+
"version": "1.1.2-rc.60",
|
4
4
|
"description": "package for the configuration of mui react sinco",
|
5
5
|
"private": false,
|
6
6
|
"license": "MIT",
|
@@ -16,8 +16,7 @@
|
|
16
16
|
"@mui/x-data-grid": "^6.6.0"
|
17
17
|
},
|
18
18
|
"sideEffects": false,
|
19
|
-
"module": "./index.js",
|
20
|
-
"main": "./index.js",
|
19
|
+
"module": "./index.esm.js",
|
21
20
|
"type": "module",
|
22
|
-
"
|
21
|
+
"main": "./index.esm.js"
|
23
22
|
}
|
package/src/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import { ReactNode } from
|
2
|
-
import { SxProps } from
|
3
|
-
export type DrawerPosition =
|
1
|
+
import React, { ReactNode } from 'react';
|
2
|
+
import { SxProps } from '@mui/material';
|
3
|
+
export type DrawerPosition = 'left' | 'right';
|
4
4
|
export interface DrawerComponentProperties {
|
5
5
|
title: string;
|
6
6
|
children: ReactNode;
|
7
7
|
actions: ReactNode;
|
8
8
|
showActions?: boolean;
|
9
9
|
anchor?: DrawerPosition;
|
10
|
-
anchorActions:
|
10
|
+
anchorActions: 'flex-end' | 'flex-start';
|
11
11
|
width: string;
|
12
12
|
open: boolean;
|
13
13
|
onClose: () => void;
|
@@ -15,5 +15,5 @@ export interface DrawerComponentProperties {
|
|
15
15
|
backgroundColor?: string;
|
16
16
|
color?: string;
|
17
17
|
}
|
18
|
-
export declare const DrawerComponent: ({ title, backgroundColor, color, children, actions, showActions, anchor, anchorActions, width, open, onClose, sx, }: DrawerComponentProperties) => JSX.Element;
|
18
|
+
export declare const DrawerComponent: ({ title, backgroundColor, color, children, actions, showActions, anchor, anchorActions, width, open, onClose, sx, }: DrawerComponentProperties) => React.JSX.Element;
|
19
19
|
export { DrawerComponent as Drawer };
|
@@ -10,4 +10,4 @@ export interface EmptyStateProperties {
|
|
10
10
|
iconStyle?: React.CSSProperties;
|
11
11
|
containerHeight?: string;
|
12
12
|
}
|
13
|
-
export declare const EmptyState: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
|
13
|
+
export declare const EmptyState: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => React.JSX.Element;
|
@@ -4,5 +4,5 @@ interface FooterActionsProperties {
|
|
4
4
|
leftContent?: React.ReactNode;
|
5
5
|
rightContent?: React.ReactNode;
|
6
6
|
}
|
7
|
-
export declare const FooterAction: ({ leftContent, rightContent, labelChangeCounter, }: FooterActionsProperties) => JSX.Element;
|
7
|
+
export declare const FooterAction: ({ leftContent, rightContent, labelChangeCounter, }: FooterActionsProperties) => React.JSX.Element;
|
8
8
|
export {};
|
@@ -11,6 +11,5 @@ export declare function PageHeaderWraps({ item, color, variant, }: {
|
|
11
11
|
item: string | React.ReactNode;
|
12
12
|
color: string;
|
13
13
|
variant: Variant;
|
14
|
-
}): JSX.Element;
|
15
|
-
export declare const
|
16
|
-
export { PageHeaderComponent as PageHeader };
|
14
|
+
}): React.JSX.Element;
|
15
|
+
export declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => React.JSX.Element;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
type Variant = 'buffer' | 'determinate' | 'indeterminate' | 'query' | 'lote';
|
3
|
+
interface ProgressProps {
|
4
|
+
time?: number;
|
5
|
+
variant?: Variant;
|
6
|
+
valueBuffer?: number;
|
7
|
+
lote?: number;
|
8
|
+
porcent?: boolean;
|
9
|
+
text?: boolean;
|
10
|
+
gif?: boolean;
|
11
|
+
progress?: boolean;
|
12
|
+
}
|
13
|
+
export declare const ProgressSinco: FC<ProgressProps>;
|
14
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import React from
|
2
|
-
export type ToastType =
|
1
|
+
import React from 'react';
|
2
|
+
export type ToastType = 'success' | 'error' | 'warning' | 'info';
|
3
3
|
export interface ToastBaseProperties {
|
4
4
|
type?: ToastType;
|
5
5
|
subtitle?: string;
|
@@ -9,4 +9,4 @@ export interface ToastBaseProperties {
|
|
9
9
|
actions?: React.ReactNode;
|
10
10
|
seeMore?: boolean;
|
11
11
|
}
|
12
|
-
export declare const ToastNotification: (toast: ToastBaseProperties) => JSX.Element;
|
12
|
+
export declare const ToastNotification: (toast: ToastBaseProperties) => React.JSX.Element;
|
@@ -1,2 +1,12 @@
|
|
1
1
|
import { Components } from "@mui/material";
|
2
|
+
declare module "@mui/material/Radio" {
|
3
|
+
interface RadioPropsSizeOverrides {
|
4
|
+
large: true;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
declare module "@mui/material/Checkbox" {
|
8
|
+
interface CheckboxPropsSizeOverrides {
|
9
|
+
large: true;
|
10
|
+
}
|
11
|
+
}
|
2
12
|
export declare const components: Components;
|
@@ -1,3 +1,14 @@
|
|
1
1
|
import { PaletteOptions } from "@mui/material";
|
2
|
+
declare module "@mui/material/styles" {
|
3
|
+
interface PaletteColor {
|
4
|
+
50?: string;
|
5
|
+
100?: string;
|
6
|
+
200?: string;
|
7
|
+
300?: string;
|
8
|
+
600?: string;
|
9
|
+
700?: string;
|
10
|
+
800?: string;
|
11
|
+
}
|
12
|
+
}
|
2
13
|
export declare const palette: PaletteOptions;
|
3
14
|
export declare const paletteAdpro: PaletteOptions;
|
package/src/module.d.ts
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import "@mui/material/Typography";
|
2
3
|
import "@mui/material/Radio";
|
3
4
|
import "@mui/material/Checkbox";
|
4
5
|
import "@mui/material/styles";
|
6
|
+
declare module '@mui/material/styles' {
|
7
|
+
interface TypographyVariants {
|
8
|
+
body3: React.CSSProperties;
|
9
|
+
}
|
10
|
+
interface TypographyVariantsOptions {
|
11
|
+
body3?: React.CSSProperties;
|
12
|
+
}
|
13
|
+
}
|
5
14
|
declare module '@mui/material/Typography' {
|
6
15
|
interface TypographyPropsVariantOverrides {
|
7
16
|
body3: true;
|