@sinco/react 1.0.11-rc.10 → 1.0.11-rc.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.11-rc.10",
3
+ "version": "1.0.11-rc.12",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,13 +1,11 @@
1
- import { ReactNode } from 'react';
2
- export type handleDrawerPosition = 'left' | 'right';
3
- export interface DrawerComponentProperties {
4
- title: string;
1
+ import React, { ReactNode } from "react";
2
+ export type Anchor = "left" | "right";
3
+ export interface DrawerComponentProps {
4
+ titulo: string;
5
5
  children: ReactNode;
6
- renderActions: ReactNode;
7
- showActions?: boolean;
8
- position?: handleDrawerPosition;
9
- width: string;
6
+ acciones: ReactNode;
10
7
  open: boolean;
11
8
  onClose: () => void;
9
+ anchor?: Anchor;
12
10
  }
13
- export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose, }: DrawerComponentProperties) => JSX.Element;
11
+ export declare const DrawerComponent: React.FC<DrawerComponentProps>;
@@ -0,0 +1,25 @@
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/system").SystemProps<import("@mui/material").Theme> & {
15
+ children?: React.ReactNode;
16
+ direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
17
+ spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
18
+ divider?: React.ReactNode;
19
+ useFlexGap?: boolean | undefined;
20
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
21
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
23
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "direction" | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "spacing" | "divider" | "useFlexGap" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
24
+ export declare const PageHeader: (page: Pageheader) => JSX.Element;
25
+ export {};
@@ -0,0 +1,24 @@
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;
@@ -1,2 +1,4 @@
1
1
  export * from './EmptyState';
2
2
  export * from './Drawer';
3
+ export * from './ToastNofitication';
4
+ export * from './PageHeader';
@@ -1,3 +1,2 @@
1
1
  import { Breakpoints } from '@mui/material';
2
- declare const breakpoints: Breakpoints;
3
- export default breakpoints;
2
+ export declare const breakpoints: Breakpoints;
@@ -1,3 +1,12 @@
1
1
  import { Components } from '@mui/material';
2
- declare const components: Components;
3
- export default components;
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;
@@ -1,15 +1 @@
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
- }
15
1
  export declare const SincoTheme: import("@mui/material/styles").Theme;
@@ -1,3 +1,2 @@
1
1
  import { Mixins } from '@mui/material';
2
- declare const mixins: Mixins;
3
- export default mixins;
2
+ export declare const mixins: Mixins;
@@ -1,3 +1,2 @@
1
1
  import { PaletteOptions } from '@mui/material';
2
- declare const palette: PaletteOptions;
3
- export default palette;
2
+ export declare const palette: PaletteOptions;
@@ -1,3 +1,2 @@
1
1
  import { Shadows } from '@mui/material/styles/shadows';
2
- declare const shadows: Shadows;
3
- export default shadows;
2
+ export declare const shadows: Shadows;
@@ -1,3 +1,19 @@
1
+ /// <reference types="react" />
1
2
  import { TypographyOptions } from '@mui/material/styles/createTypography';
2
- declare const typography: TypographyOptions;
3
- export default typography;
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;
@@ -1,7 +1,6 @@
1
1
  import { PaletteColor, TypeBackground } from "@mui/material";
2
- declare const dynamicColor: (src: string) => Promise<{
2
+ export declare const dynamicColor: (src: string) => Promise<{
3
3
  primaryColor: PaletteColor;
4
4
  secondaryColor: PaletteColor;
5
5
  backgroundColor: TypeBackground;
6
6
  }>;
7
- export default dynamicColor;