@sinco/react 1.0.11-rc.14 → 1.0.11-rc.16

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.11-rc.14",
3
+ "version": "1.0.11-rc.16",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -8,4 +8,5 @@ export interface DrawerComponentProps {
8
8
  onClose: () => void;
9
9
  anchor?: Anchor;
10
10
  }
11
- export declare const DrawerComponent: React.FC<DrawerComponentProps>;
11
+ declare const DrawerComponent: React.FC<DrawerComponentProps>;
12
+ export default DrawerComponent;
@@ -1,4 +1,2 @@
1
1
  export * from './EmptyState';
2
2
  export * from './Drawer';
3
- export * from './ToastNofitication';
4
- export * from './PageHeader';
@@ -1,2 +1,3 @@
1
1
  import { Breakpoints } from '@mui/material';
2
- export declare const breakpoints: Breakpoints;
2
+ declare const breakpoints: Breakpoints;
3
+ export default breakpoints;
@@ -1,12 +1,3 @@
1
1
  import { Components } from '@mui/material';
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;
2
+ declare const components: Components;
3
+ export default components;
@@ -1 +1,15 @@
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
+ }
1
15
  export declare const SincoTheme: import("@mui/material/styles").Theme;
@@ -1,2 +1,3 @@
1
1
  import { Mixins } from '@mui/material';
2
- export declare const mixins: Mixins;
2
+ declare const mixins: Mixins;
3
+ export default mixins;
@@ -1,2 +1,3 @@
1
1
  import { PaletteOptions } from '@mui/material';
2
- export declare const palette: PaletteOptions;
2
+ declare const palette: PaletteOptions;
3
+ export default palette;
@@ -1,2 +1,3 @@
1
1
  import { Shadows } from '@mui/material/styles/shadows';
2
- export declare const shadows: Shadows;
2
+ declare const shadows: Shadows;
3
+ export default shadows;
@@ -1,19 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypographyOptions } from '@mui/material/styles/createTypography';
3
- declare module '@mui/material/styles' {
4
- interface TypographyVariants {
5
- body3: React.CSSProperties;
6
- subtitle3: React.CSSProperties;
7
- }
8
- interface TypographyVariantsOptions {
9
- body3?: React.CSSProperties;
10
- subtitle3?: React.CSSProperties;
11
- }
12
- }
13
- declare module '@mui/material/Typography' {
14
- interface TypographyPropsVariantOverrides {
15
- body3: true;
16
- subtitle3: true;
17
- }
18
- }
19
- export declare const typography: TypographyOptions;
2
+ declare const typography: TypographyOptions;
3
+ export default typography;
@@ -1,6 +1,7 @@
1
1
  import { PaletteColor, TypeBackground } from "@mui/material";
2
- export declare const dynamicColor: (src: string) => Promise<{
2
+ 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/README.md DELETED
@@ -1,57 +0,0 @@
1
- # @sinco/react
2
-
3
- Paquete de sinco react
4
-
5
- ## Cómo empezar
6
-
7
- npm i @sinco/react
8
-
9
- ## Pre-requisitos
10
-
11
- Asegúrate de tener instalado React en la versión 18. También, es necesario instalar Material-UI React. Puedes encontrar las instrucciones de instalación en el siguiente enlace:
12
- https://mui.com/material-ui/getting-started/installation/
13
-
14
- ## Fuentes web de Google
15
-
16
- Puedes utilizar fuentes de Google Web Fonts en tu proyecto. Para hacerlo, agrega el siguiente fragmento de código dentro de la etiqueta `<head>` de tu proyecto:
17
-
18
- ` <link
19
- rel="stylesheet"
20
- href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Roboto:wght@300;400;500;700&display=swap"
21
- />`
22
- <br/>
23
- Otra opción es instalar las fuentes Roboto y Nunito desde npm utilizando los paquetes O ya sea instalando las fuentes [@fontsource/roboto](https://www.npmjs.com/package/@fontsource/roboto) y [@fontsource/nunito](https://www.npmjs.com/package/@fontsource/nunito) en su archivo index.tsx, los fontsource son que se necesitan son :
24
-
25
- ## Roboto
26
-
27
- import '@fontsource/roboto/400.css';
28
- <br/>
29
- import '@fontsource/roboto/500.css';
30
-
31
- ## Nunito
32
-
33
- import '@fontsource/nunito/300.css';
34
- <br/>
35
- import '@fontsource/nunito/400.css';
36
- <br/>
37
- import '@fontsource/nunito/500.css';
38
- <br/>
39
- import '@fontsource/nunito/600.css';
40
-
41
- ## Icons
42
-
43
- Para usar el `Iconcomponent` de fuente, primero debe agregar la fuente [Material Icons](https://mui.com/material-ui/getting-started/installation/#icons).
44
-
45
- ## Como utilizar
46
-
47
- Para utilizar el tema personalizado de sinco react, debes envolver tu aplicación con el componente `ThemeProvider` de Material-UI y proporcionar la variable `SincoTheme` como valor del prop `theme` en el [ThemeProvider](https://mui.com/material-ui/customization/theming/#theme-provider)
48
-
49
- ## Más información
50
-
51
- Puedes encontrar más información sobre cómo utilizar React y Material-UI en la documentación oficial: -[React](https://reactnative.dev/) -[Material-UI](https://mui.com/material-ui/getting-started/)
52
-
53
- ## Requerimientos
54
-
55
- Data grid pro: [Data grid pro](https://mui.com/x/react-data-grid/) Instalar npm [@mui/x-data-grid.](https://www.npmjs.com/package/@mui/x-data-grid-pro)
56
-
57
- Dynamic Color: Instalar [@material/material-color-utilities](https://github.com/material-foundation/material-color-utilities/blob/main/typescript/README.md)
@@ -1,18 +0,0 @@
1
- import React from "react";
2
- interface BreadcrumbCode {
3
- link: string;
4
- name: string;
5
- }
6
- interface Pageheader {
7
- back?: React.ReactNode;
8
- title?: string;
9
- subtitle?: string;
10
- breadcrumbs?: BreadcrumbCode[];
11
- actions?: React.ReactNode;
12
- tabs?: React.ReactNode;
13
- }
14
- export declare const PageContent: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
16
- }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
- export declare const PageHeader: (page: Pageheader) => JSX.Element;
18
- export {};
@@ -1,24 +0,0 @@
1
- import { ReactElement } from "react";
2
- import React from "react";
3
- export interface Option {
4
- }
5
- export interface Toast {
6
- type?: string;
7
- subtitle?: string;
8
- time?: number | any;
9
- title?: string;
10
- dataOpt?: Option[];
11
- actions?: React.ReactNode;
12
- seeMore?: boolean;
13
- position?: string;
14
- }
15
- export interface IconMap {
16
- [key: string]: ReactElement;
17
- }
18
- export interface ColorMap {
19
- [key: string]: "success" | "error" | "warning" | "info";
20
- }
21
- export interface position {
22
- [key: string]: "center" | "end" | "start";
23
- }
24
- export declare const ToastNotification: (toast: Toast) => JSX.Element;