@sinco/react 1.2.2-rc.0 → 1.2.2-rc.11
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.esm.js +10853 -7881
- package/package.json +9 -6
- package/src/lib/Components/Drawer.d.ts +5 -2
- package/src/lib/Components/FooterAction.d.ts +2 -2
- package/src/lib/Components/MultiSelect/MultiSelect.d.ts +13 -0
- package/src/lib/Components/MultiSelect/index.d.ts +1 -0
- package/src/lib/Components/PageHeader.d.ts +2 -1
- package/src/lib/Components/adjuntar/AdjuntarArchivos.d.ts +8 -0
- package/src/lib/Components/adjuntar/index.d.ts +1 -0
- package/src/lib/Components/index.d.ts +2 -0
- package/src/lib/Hooks/useProgress.d.ts +3 -0
- package/src/lib/Theme/components.d.ts +2 -2
- package/src/lib/Theme/index.d.ts +1 -1
- package/src/lib/Theme/module.d.ts +35 -1
- package/src/lib/Theme/palette.d.ts +4 -2
- package/src/lib/Theme/theme.d.ts +2 -2
- package/src/lib/Theme/typography.d.ts +1 -1
- package/src/module.d.ts +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sinco/react",
|
3
|
-
"version": "1.2.2-rc.
|
3
|
+
"version": "1.2.2-rc.11",
|
4
4
|
"description": "package for the configuration of mui react sinco",
|
5
5
|
"private": false,
|
6
6
|
"license": "MIT",
|
@@ -9,14 +9,17 @@
|
|
9
9
|
"url": "https://github.com/SincosoftSAS/DesignSystem.git"
|
10
10
|
},
|
11
11
|
"peerDependencies": {
|
12
|
-
"react": "^18.2.0",
|
13
|
-
"react-dom": "^18.2.0",
|
14
12
|
"@emotion/react": "^11.11.0",
|
15
|
-
"@mui/icons-material": "^
|
16
|
-
"@mui/x-data-grid": "^6.6.0"
|
13
|
+
"@mui/icons-material": "^6.0.2",
|
14
|
+
"@mui/x-data-grid": "^6.6.0",
|
15
|
+
"react": "^18.2.0",
|
16
|
+
"react-dom": "^18.2.0"
|
17
17
|
},
|
18
18
|
"sideEffects": false,
|
19
|
+
"dependencies": {
|
20
|
+
"react-dropzone": "^14.2.3"
|
21
|
+
},
|
19
22
|
"module": "./index.esm.js",
|
20
23
|
"type": "module",
|
21
24
|
"main": "./index.esm.js"
|
22
|
-
}
|
25
|
+
}
|
@@ -4,7 +4,7 @@ export type DrawerPosition = "left" | "right";
|
|
4
4
|
export interface DrawerComponentProperties {
|
5
5
|
title: string;
|
6
6
|
children: ReactNode;
|
7
|
-
actions
|
7
|
+
actions?: ReactNode;
|
8
8
|
showActions?: boolean;
|
9
9
|
anchor?: DrawerPosition;
|
10
10
|
anchorActions: "flex-end" | "flex-start";
|
@@ -12,8 +12,11 @@ export interface DrawerComponentProperties {
|
|
12
12
|
open: boolean;
|
13
13
|
onClose: () => void;
|
14
14
|
sx?: SxProps;
|
15
|
+
sxActions?: SxProps;
|
15
16
|
backgroundColor?: string;
|
16
17
|
color?: string;
|
18
|
+
headerColor?: string;
|
19
|
+
closeIcon?: string;
|
17
20
|
}
|
18
|
-
export declare const DrawerComponent: ({ title, backgroundColor, color, children, actions, showActions, anchor, anchorActions, width, open, onClose, sx, }: DrawerComponentProperties) => React.JSX.Element;
|
21
|
+
export declare const DrawerComponent: ({ title, backgroundColor, color, headerColor, children, actions, showActions, sxActions, closeIcon, anchor, anchorActions, width, open, onClose, sx, }: DrawerComponentProperties) => React.JSX.Element;
|
19
22
|
export { DrawerComponent as Drawer };
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
interface FooterActionsProperties {
|
3
|
-
|
3
|
+
labelChangeCounter: React.ReactNode;
|
4
4
|
leftContent?: React.ReactNode;
|
5
5
|
rightContent?: React.ReactNode;
|
6
6
|
}
|
7
|
-
export declare const FooterAction: ({ leftContent, rightContent,
|
7
|
+
export declare const FooterAction: ({ leftContent, rightContent, labelChangeCounter, }: FooterActionsProperties) => React.JSX.Element;
|
8
8
|
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from "react";
|
2
|
+
export interface MultiSelectProps {
|
3
|
+
topPanel?: React.ReactNode;
|
4
|
+
acciones?: React.ReactNode;
|
5
|
+
anchorEl: HTMLElement | null;
|
6
|
+
dense?: boolean;
|
7
|
+
open: boolean;
|
8
|
+
items: any[];
|
9
|
+
onClose?: () => void;
|
10
|
+
filterFunction: (items: any[], filtroTexto: string) => any[];
|
11
|
+
getItemLabel: (item: any) => string;
|
12
|
+
}
|
13
|
+
export declare const MultiSelect: ({ topPanel, acciones, open, onClose, items, filterFunction, getItemLabel, anchorEl, dense }: MultiSelectProps) => React.JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '../MultiSelect';
|
@@ -12,4 +12,5 @@ export declare function PageHeaderWraps({ item, color, variant, }: {
|
|
12
12
|
color: string;
|
13
13
|
variant: Variant;
|
14
14
|
}): React.JSX.Element;
|
15
|
-
export declare const
|
15
|
+
export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => React.JSX.Element;
|
16
|
+
export { PageHeaderComponent as PageHeader };
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { SxProps } from "@mui/material";
|
3
|
+
export interface AdjuntarProps {
|
4
|
+
controlArchivo: (archivos: File[]) => any;
|
5
|
+
compact?: boolean;
|
6
|
+
sx?: SxProps;
|
7
|
+
}
|
8
|
+
export declare const AdjuntarArchivo: ({ compact, sx, controlArchivo }: AdjuntarProps) => React.JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './AdjuntarArchivos';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Components } from "@mui/material";
|
2
|
-
export declare const components: Components
|
1
|
+
import { Components, Theme } from "@mui/material";
|
2
|
+
export declare const components: Components<Theme>;
|
package/src/lib/Theme/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
2
|
-
export declare
|
2
|
+
export declare let AdproSincoTheme: import("@mui/material/styles").Theme;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import "@mui/material/Typography";
|
3
2
|
import "@mui/material/Radio";
|
3
|
+
import '@mui/material/Chip';
|
4
4
|
import "@mui/material/Checkbox";
|
5
5
|
import "@mui/material/styles";
|
6
6
|
declare module '@mui/material/styles' {
|
@@ -26,6 +26,40 @@ declare module "@mui/material/Checkbox" {
|
|
26
26
|
large: true;
|
27
27
|
}
|
28
28
|
}
|
29
|
+
declare module '@mui/material/styles' {
|
30
|
+
interface Palette {
|
31
|
+
default: Palette['primary'];
|
32
|
+
chipPrimary: Palette['primary'];
|
33
|
+
chipSecondary: Palette['secondary'];
|
34
|
+
chipInfo: Palette['info'];
|
35
|
+
chipWarning: Palette['warning'];
|
36
|
+
chipError: Palette['error'];
|
37
|
+
chipSuccess: Palette['success'];
|
38
|
+
}
|
39
|
+
interface PaletteOptions {
|
40
|
+
default?: Palette['primary'];
|
41
|
+
chipPrimary?: Palette['primary'];
|
42
|
+
chipSecondary?: Palette['secondary'];
|
43
|
+
chipInfo?: Palette['info'];
|
44
|
+
chipWarning?: Palette['warning'];
|
45
|
+
chipError?: PaletteOptions['error'];
|
46
|
+
chipSuccess?: PaletteOptions['success'];
|
47
|
+
}
|
48
|
+
}
|
49
|
+
declare module '@mui/material/Chip' {
|
50
|
+
interface ChipPropsVariantOverrides {
|
51
|
+
standard: true;
|
52
|
+
}
|
53
|
+
interface ChipPropsColorOverrides {
|
54
|
+
default: true;
|
55
|
+
chipPrimary: true;
|
56
|
+
chipSecondary: true;
|
57
|
+
chipInfo: true;
|
58
|
+
chipWarning: true;
|
59
|
+
chipError: true;
|
60
|
+
chipSuccess: true;
|
61
|
+
}
|
62
|
+
}
|
29
63
|
declare module "@mui/material/styles" {
|
30
64
|
interface PaletteColor {
|
31
65
|
50?: string;
|
@@ -1,3 +1,5 @@
|
|
1
1
|
import { PaletteOptions } from "@mui/material";
|
2
|
-
export declare const
|
3
|
-
export declare const
|
2
|
+
export declare const BasicPalette: Partial<PaletteOptions>;
|
3
|
+
export declare const paletteERP: PaletteOptions;
|
4
|
+
export declare const paletteADPRO: PaletteOptions;
|
5
|
+
export declare const paletteADC: PaletteOptions;
|
package/src/lib/Theme/theme.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ThemeOptions } from "@mui/material/styles";
|
2
|
-
export declare const
|
3
|
-
export declare const
|
2
|
+
export declare const ERPTheme: ThemeOptions;
|
3
|
+
export declare const ADPROTheme: ThemeOptions;
|
package/src/module.d.ts
CHANGED