@sinco/react 1.0.15-rc.67 → 1.0.15-rc.69

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.15-rc.67",
3
+ "version": "1.0.15-rc.69",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -9,10 +9,10 @@
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",
12
14
  "@emotion/react": "^11.11.0",
13
- "@emotion/styled": "^11.11.0",
14
15
  "@mui/icons-material": "^5.14.3",
15
- "@mui/material": "^5.14.13",
16
16
  "@mui/x-data-grid": "^6.6.0"
17
17
  },
18
18
  "sideEffects": false,
@@ -7,9 +7,10 @@ export interface PageheaderProperties {
7
7
  buttonBack?: React.ReactNode;
8
8
  fixed?: boolean;
9
9
  }
10
- export declare function PageHeaderWrapper({ item, color, variant, }: {
10
+ export declare function PageHeaderWraps({ item, color, variant, }: {
11
11
  item: string | React.ReactNode;
12
12
  color: string;
13
13
  variant: Variant;
14
14
  }): JSX.Element;
15
15
  export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
16
+ export { PageHeaderComponent as PageHeader };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export type ToastType = "success" | "error" | "warning" | "info";
3
+ export interface ToastBaseProperties {
4
+ type?: ToastType;
5
+ subtitle?: string;
6
+ title: string;
7
+ time?: number;
8
+ dataOpt?: string[];
9
+ actions?: React.ReactNode;
10
+ seeMore?: boolean;
11
+ }
12
+ export declare const ToastNotificationComponent: (toast: ToastBaseProperties) => JSX.Element;
13
+ export { ToastNotificationComponent as ToastNotification };
@@ -1,4 +1,5 @@
1
1
  export * from "./EmptyState";
2
2
  export * from "./Drawer";
3
3
  export * from "./FooterAction";
4
+ export * from "./ToastNotification";
4
5
  export * from "./PageHeader";
@@ -0,0 +1,3 @@
1
+ export declare const useProgress: (timeProgress: number) => {
2
+ progressToast: number;
3
+ };
@@ -1,2 +1,21 @@
1
+ import { PaletteAugmentColorOptions } from '@mui/material/styles/createPalette';
1
2
  import { PaletteOptions } from '@mui/material';
3
+ declare module '@mui/material/styles' {
4
+ interface Palette {
5
+ avatar: PaletteAugmentColorOptions;
6
+ }
7
+ interface PaletteOptions {
8
+ avatar?: {
9
+ abc?: string;
10
+ def?: string;
11
+ ghi?: string;
12
+ jkl?: string;
13
+ mnñ?: string;
14
+ opq?: string;
15
+ rst?: string;
16
+ uvw?: string;
17
+ xyz?: string;
18
+ };
19
+ }
20
+ }
2
21
  export declare const palette: PaletteOptions;