@sinco/react 1.2.5-rc.9 → 1.2.5
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 +7487 -10064
- package/package.json +8 -10
- package/src/lib/Components/Drawer.d.ts +1 -1
- package/src/lib/Components/EmptyState.d.ts +3 -3
- package/src/lib/Components/index.d.ts +0 -2
- package/src/lib/Theme/components.d.ts +1 -0
- package/src/lib/Theme/index.d.ts +1 -0
- package/src/lib/Theme/palette.d.ts +1 -0
- package/src/lib/Theme/theme.d.ts +1 -0
- package/src/lib/Theme/typography.d.ts +3 -2
- package/src/lib/Components/AdjuntarArchivos.d.ts +0 -9
- package/src/lib/Components/MultiSelect.d.ts +0 -18
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sinco/react",
|
3
|
-
"version": "1.2.5
|
3
|
+
"version": "1.2.5",
|
4
4
|
"description": "package for the configuration of mui react sinco",
|
5
5
|
"private": false,
|
6
6
|
"license": "MIT",
|
@@ -9,17 +9,15 @@
|
|
9
9
|
"url": "https://github.com/SincosoftSAS/DesignSystem.git"
|
10
10
|
},
|
11
11
|
"peerDependencies": {
|
12
|
-
"@emotion/react": "^11.
|
13
|
-
"@mui/icons-material": "
|
14
|
-
"@mui/x-data-grid": "7.
|
15
|
-
"react": "^
|
16
|
-
"react-dom": "^
|
12
|
+
"@emotion/react": "^11.14.0",
|
13
|
+
"@mui/icons-material": "7.0.0",
|
14
|
+
"@mui/x-data-grid": "7.x",
|
15
|
+
"react": "^19.1.0",
|
16
|
+
"react-dom": "^19.1.0"
|
17
17
|
},
|
18
18
|
"sideEffects": false,
|
19
|
-
"dependencies": {
|
20
|
-
"react-dropzone": "^14.2.3"
|
21
|
-
},
|
22
19
|
"module": "./index.esm.js",
|
23
20
|
"type": "module",
|
24
|
-
"main": "./index.esm.js"
|
21
|
+
"main": "./index.esm.js",
|
22
|
+
"types": "./index.esm.d.ts"
|
25
23
|
}
|
@@ -20,5 +20,5 @@ export interface DrawerComponentProperties {
|
|
20
20
|
anchor?: DrawerPosition;
|
21
21
|
anchorActions: "flex-end" | "flex-start";
|
22
22
|
}
|
23
|
-
export declare const DrawerComponent: ({ open, onClose, title, width, children, actions, sx, sxHeader, sxContent, sxActions,
|
23
|
+
export declare const DrawerComponent: ({ open, onClose, title, width, children, actions, sx, sxHeader, sxContent, sxActions, backgroundColor, closeIconColor, headerColor, anchor, anchorActions, showActions, }: DrawerComponentProperties) => React.JSX.Element;
|
24
24
|
export { DrawerComponent as Drawer };
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
2
|
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
3
|
+
export type EmptyStateSize = 'small' | 'large';
|
3
4
|
export interface EmptyStateProperties {
|
4
5
|
icon?: ReactNode;
|
5
6
|
state?: EmptyStateStates;
|
7
|
+
size?: EmptyStateSize;
|
6
8
|
title: string;
|
7
9
|
subtitle?: string;
|
8
10
|
actions?: ReactNode;
|
9
|
-
iconStyle?: React.CSSProperties;
|
10
11
|
containerHeight?: string;
|
11
12
|
}
|
12
|
-
export declare const
|
13
|
-
export { EmptyStateComponent as EmptyState };
|
13
|
+
export declare const EmptyState: ({ state, size, title, subtitle, actions, containerHeight, icon, }: EmptyStateProperties) => React.JSX.Element;
|
package/src/lib/Theme/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
export declare let CosmosTheme: import("@mui/material/styles").Theme;
|
1
2
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
2
3
|
export declare let AdproSincoTheme: import("@mui/material/styles").Theme;
|
3
4
|
export declare let ADCSincoTheme: import("@mui/material/styles").Theme;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PaletteOptions } from "@mui/material";
|
2
2
|
export declare const BasicPalette: Partial<PaletteOptions>;
|
3
|
+
export declare const paletteCosmos: PaletteOptions;
|
3
4
|
export declare const paletteERP: PaletteOptions;
|
4
5
|
export declare const paletteADPRO: PaletteOptions;
|
5
6
|
export declare const paletteADC: PaletteOptions;
|
package/src/lib/Theme/theme.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { TypographyVariantsOptions } from '@mui/material/styles/createTypography';
|
2
2
|
import "./module";
|
3
|
-
export declare const typography:
|
3
|
+
export declare const typography: TypographyVariantsOptions;
|
4
|
+
export declare const cosmosTypography: TypographyVariantsOptions;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import { SxProps } from "@mui/material";
|
3
|
-
export interface AdjuntarProps<T> {
|
4
|
-
guardarArchivo: (archivos: T[]) => void;
|
5
|
-
compact?: boolean;
|
6
|
-
sx?: SxProps;
|
7
|
-
transformarArchivo: (archivo: File) => T;
|
8
|
-
}
|
9
|
-
export declare const AdjuntarArchivo: <T>({ compact, sx, guardarArchivo, transformarArchivo, }: AdjuntarProps<T>) => React.JSX.Element;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
export interface MultiSelectProps<T> {
|
3
|
-
topPanel?: React.ReactNode;
|
4
|
-
actions?: React.ReactNode;
|
5
|
-
anchorEl: HTMLElement | null;
|
6
|
-
dense?: boolean;
|
7
|
-
open: boolean;
|
8
|
-
items: T[];
|
9
|
-
onClose?: () => void;
|
10
|
-
handleFilter?: (items: T[], filterValue: string) => T[];
|
11
|
-
getItemLabel: (item: T) => string;
|
12
|
-
filtrarDesdeComponente?: boolean;
|
13
|
-
OnChangeLimpiar?: () => void;
|
14
|
-
OnClickLimpiar?: () => void;
|
15
|
-
OnChangeAplicar?: () => void;
|
16
|
-
OnClickAplicar?: () => void;
|
17
|
-
}
|
18
|
-
export declare function MultiSelect<T>({ items, topPanel, actions, dense, anchorEl, open, onClose, handleFilter, getItemLabel, OnChangeLimpiar, OnClickLimpiar, OnChangeAplicar, OnClickAplicar, filtrarDesdeComponente, }: MultiSelectProps<T>): React.JSX.Element;
|